摘要:
function test(){ console.log(arguments); // 类数组 // 类数组转化为数组 console.log(Array.prototype.slice.call(arguments)); } test(1,2,3,4,5); function test(){ co 阅读全文
摘要:
// 获取url相应的参数 function getParams(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(r 阅读全文