标签: javascript
是否可以调整history.length值,例如将其减少一个?例如:
history.length
history.length = history.length - 1;
答案 0 :(得分:1)
不,length是只读的,如MDN window.history页面所述:https://developer.mozilla.org/en-US/docs/DOM/window.history
length
window.history