摘要: mounted(){ var that=this; setTimeout(()=>{ let scroll = new BScroll(document.getElementById('wrapper'),{ probeType: 1 }) scroll.on('scroll', (pos) => {... 阅读全文
posted @ 2018-08-06 11:13 黎明之光123 阅读(222) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/hsapphire/archive/2009/12/16/1625642.html 阅读全文
posted @ 2018-08-02 13:49 黎明之光123 阅读(132) 评论(0) 推荐(0)
摘要: 地址:http://www.cnblogs.com/yangjunfei/p/6746926.html点击 案例参考:http://www.dowebok.com/131.html 点击 阅读全文
posted @ 2018-08-02 11:35 黎明之光123 阅读(117) 评论(0) 推荐(0)
摘要: 帮助文档 var url = location.search; > "?action=view&section=info&id=123&debug&testy[]=true&testy[]=false&testy[]" var section = $.query.get('section'); > "info" var id = $.query.get('id'); > 123 var deb... 阅读全文
posted @ 2018-07-24 10:22 黎明之光123 阅读(1438) 评论(0) 推荐(0)
摘要: //url操作 //例如 www.XXX.comv=18072303090463&id=175&token=zoen8EFPI84DOiHtHVYJwX1a69vh5JOB&languageCode=1&playSite=1#/?_k=2ge946 var urlParam=location.search.substring(1); var arrParam=zz.split('&') var ... 阅读全文
posted @ 2018-07-24 10:14 黎明之光123 阅读(152) 评论(0) 推荐(0)
摘要: function timeFormat(newTimeStr, oldTimeStr){ newTimeStr = newTimeStr.replace(/-/g, "/"); oldTimeStr = oldTimeStr.replace(/-/g, "/"); var newTime = new Date(newTimeStr).getTime(); var... 阅读全文
posted @ 2018-07-20 16:27 黎明之光123 阅读(137) 评论(0) 推荐(0)
摘要: https://tinypng.com/ //非常不错哦 阅读全文
posted @ 2018-07-16 16:22 黎明之光123 阅读(130) 评论(0) 推荐(0)
摘要: window.CusEventTarget = function () { this._listener = {}; }; CusEventTarget.prototype = { constructor: this, addEvent: function (type, fn) { if (typeof type === "string" && type... 阅读全文
posted @ 2018-07-13 14:56 黎明之光123 阅读(186) 评论(0) 推荐(0)
摘要: (function (window) { function myPaginationArray(totalPage, currentPage) { var myPage = []; if (totalPage 5) { if (currentPage + 5 >= totalPage) { ... 阅读全文
posted @ 2018-07-13 14:55 黎明之光123 阅读(130) 评论(0) 推荐(0)
摘要: location.hostname.replace(/.*?([^\.]+.(com|cn))/, "$1"); //www.baidu.com => baidu.com return (num || 0).toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1 阅读全文
posted @ 2018-07-13 10:13 黎明之光123 阅读(176) 评论(0) 推荐(0)