摘要: function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = ha... 阅读全文
posted @ 2018-11-01 15:50 Echo的前端空间 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 一般这样创建一个日期变量 var time = new Date("2018-09-11 12:00:00"); 发现在iOS中不兼容,返回valid Date。 IOS中不支持 - 连接日期 需要写成 var time = new Date("2018-09-11 12:00:00".replac 阅读全文
posted @ 2018-11-01 15:44 Echo的前端空间 阅读(2425) 评论(0) 推荐(0) 编辑
摘要: function is_weixn(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { return true; } else { return fals 阅读全文
posted @ 2018-11-01 15:36 Echo的前端空间 阅读(136) 评论(0) 推荐(0) 编辑