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