在控制台輸入
history
history.length 歷史記錄個數
history.back() 后退
history.forward() 前進
history.go(n) 跳到某一頁,可正可負,當n是o時刷新頁面
location
window.location;
location.href:可更改地址
location.search:查詢數據
location.hash:返回錨點
location.reload(true/false):重新刷新頁面,true不走緩存,false走緩存。默認不走緩存
location.assign()括號內為空,刷新頁面
navigator
Navigator 對象包含有關瀏覽器的信息。
appName 返回瀏覽器的名稱。
appCodeName 返回瀏覽器的代碼名稱的字符串。
cookieEnabled 指明瀏覽器中是否啟用 cookie 的布爾值。
platform 返回運行瀏覽器的操作系統平台。
appVersion 返回瀏覽器的平台和版本信息。
userAgent-- 用戶代理頭的字符串表示
Screen
Screen 對象包含有關客戶端顯示屏幕的信息。
height 返回顯示屏幕的高度。 width 返回顯示器屏幕的寬度。
availHeight 顯示屏幕的可用高度 (除 Windows 任務欄之外)。
availWidth 顯示屏幕的可用寬度 (除 Windows 任務欄之外)。