1芙代、document
document.referrer? //獲取上一個跳轉(zhuǎn)頁面的地址(需要服務(wù)器環(huán)境)
2吊奢、location
window.location.href? //獲取或者重定url地址
window.location.search //獲取地址參數(shù)部分
window.location.hash //獲取頁面錨點或者叫哈希值
3、Math
Math.random 獲取0-1的隨機數(shù)
Math.floor 向下取整
Math.ceil 向上取整