摘要:
getNowFormatDate(n) { if(n==''){ n=new Date() } var date = new Date(n); var seperator1 = "-"; var year = date.getFullYear(); var month = date.getMonth 阅读全文
摘要:
GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); var s 阅读全文
摘要:
var url=window.location.href; //获取当前页面的url if(url.indexOf("?")!=-1){ //判断是否存在参数 url = url.replace(/(\?|#)[^'"]*/, ''); //去除参数 window.history.pushState 阅读全文