摘要:
//分页条获得分页数字,然后跳转到拼接字符串的页面 function getPage(page) { var window_href = location.pathname; var newWindowHref = window_href + "?page=" + page; window.location = newWindowHref; } //... 阅读全文
摘要:
//查找数组中的val 的下标 Array.prototype.indexOf = function(val) { for (var i = 0; i -1) { this.splice(index, 1); } }; //调用 ['4','5','6'].remove('5');//['4','6'] 阅读全文