JavaScriptBOMhistory属性all本页总览all2023年06月08日柏拉文越努力,越幸运 history.length history.length 是一个只读属性,返回当前 session 中的 history 个数,包含当前页面在内。举个例子,对于新开一个 tab 加载的页面当前属性返回值 1