摘要: (function (doc, win) { var docEl = doc.documentElement, resizeEvt = ‘orientationchange’ in window ? ‘orientationchange’ : ‘resize’, recalc = function () { var clientWidth = docEl.clientWidth; if (!cl... 阅读全文
posted @ 2016-07-13 13:55 丶七月小先生丶 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 正则表达式获取地址栏参数 getRequestParams: function () { var url = window.location.href; var theRequest = {}; if (url.indexOf("?") > -1) { var currentPaths = url. 阅读全文
posted @ 2016-07-13 13:53 丶七月小先生丶 阅读(6568) 评论(0) 推荐(0) 编辑