摘要: function datezh(s){ return s = s>9 ? s:"0"+s } function dateTime(t){ var getNowTime = vm.getServerTime.replace(/-/g,"/");//vue vm.getServerTime获取到的服务器 阅读全文
posted @ 2018-12-12 14:31 Webwhl 阅读(183) 评论(0) 推荐(0)
摘要: var getSocketUrl = localStorage.getItem("socketUrl"); getSocketUrl = getSocketUrl && getSocketUrl.split("//")[1]; 阅读全文
posted @ 2018-12-12 14:20 Webwhl 阅读(349) 评论(0) 推荐(0)
摘要: function json(){ return { name :"whl", age :30 } } console.log(json()) //结果{name: "whl", age: 30} 阅读全文
posted @ 2018-12-12 14:16 Webwhl 阅读(139) 评论(0) 推荐(0)
摘要: //小于10前面加0 function add(m){ return m<10 ? "0"+m : m; } function getTime(timestamp) { var time = new Date(timestamp); var year = time.getFullYear(); va 阅读全文
posted @ 2018-12-12 14:09 Webwhl 阅读(225) 评论(0) 推荐(0)
摘要: function tablenumber() { $.ajax({ type : "get", url : "../res/error.json", dataType : "json", success : function(data){ console.log(data); vm.SuccessN 阅读全文
posted @ 2018-12-12 11:29 Webwhl 阅读(1122) 评论(0) 推荐(0)