摘要:
设置或获取对象指定的文件名或路径。 alert(window.location.pathname) 设置或获取整个 URL 为字符串。alert(window.location.href); 设置或获取与 URL 关联的端口号码。 alert(window.location.port) 设置或获取 阅读全文
摘要:
1 2 3 4 5 Title 6 11 12 13 14 15 一:返回指定范围的随机数(m-n之间)的公式:document.write(Math.random()*(n-m)+m);二:js语言小数取整的方法:1.丢弃小数部分,保留整数部分 :parseInt(7/2) 2.四舍五入 : Math.round(7/2) 3.向... 阅读全文