一、
內置對象:1.document document.referrer //獲取上一個跳轉頁面的地址。
2.location window.location.href //獲取或者重定url地址。
window.location.search //獲取地址參數部分
window.location.hash //獲取頁面錨點或者hash值
3.Math Math.random //獲取0-1的隨機值
Math.floor //向下取整
Math.ceil //向上取整
案例1:

案例2:

案例3:

