严格模式下是没问题的~
文档也是找到了,https://hacks.mozilla.org/2015/07/es6-in-depth-let-and-const/
document.documentElement.scrollTop = 6000; // 大致在这个位置
严格模式:
Unexpected strict mode reserved word(意外严格模式保留字)
非严格模式:
严格模式下是没问题的~
文档也是找到了,https://hacks.mozilla.org/2015/07/es6-in-depth-let-and-const/
document.documentElement.scrollTop = 6000; // 大致在这个位置
严格模式:
Unexpected strict mode reserved word(意外严格模式保留字)
非严格模式: