上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: 等待f1加载完才执行下一行 阅读全文
posted @ 2017-12-08 15:31 fm060 阅读(106) 评论(0) 推荐(0)
摘要: const arrt=[1,2,3,4]const arrt1=[6,7,8,9]arrt.push(...arrt1) 输入 [1,2,3,4,6,7,8,9] es5写法:Array.prototype.push.apply(arr1, arr2); 阅读全文
posted @ 2017-12-08 15:09 fm060 阅读(111) 评论(0) 推荐(0)
摘要: (function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'onorientationchange' in window ? 'onorientationchange' : 'resize', recalc = function () { var clie... 阅读全文
posted @ 2017-11-24 11:22 fm060 阅读(135) 评论(0) 推荐(0)
摘要: function IsPC() { var userAgentInfo = navigator.userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; var flag = true; for (var v ... 阅读全文
posted @ 2017-11-21 23:41 fm060 阅读(187) 评论(0) 推荐(0)
摘要: 1.设置config文件夹index.js中productionSourceMap的值为false,也就是设置webpack配置中devtool为false,打包后文件体积可以减少百分之八十!!!!!!! 2.如何实现打包文件中js、css等的版本控制? 设置build文件夹下的webpack.pr 阅读全文
posted @ 2017-11-15 14:34 fm060 阅读(3611) 评论(0) 推荐(1)
摘要: VueLazyload 阅读全文
posted @ 2017-11-15 11:06 fm060 阅读(99) 评论(0) 推荐(0)
摘要: // 字符串 this.$router.push('/home/first') // 对象 this.$router.push({ path: '/home/first' }) // 命名的路由 this.$router.push({ name: 'home', params: { userId: wise }}) 阅读全文
posted @ 2017-11-13 15:26 fm060 阅读(166) 评论(0) 推荐(0)
摘要: 对象-数组-字符串: 例如: var data = { user:”userName”, pass:”12121” };//这是一个对象 如果要给这个data 对象追加一个属性就比如: new Date( ).getTime( );//获取当前时间到那个时间的时间间隔单位是毫秒; data.time = new Da... 阅读全文
posted @ 2017-11-09 00:29 fm060 阅读(392) 评论(0) 推荐(0)
摘要: js 四舍五入函数 toFixed(),里面的参数 就是保留小数的位数。 阅读全文
posted @ 2017-10-30 18:19 fm060 阅读(12637) 评论(1) 推荐(0)
摘要: vue axios方法封装 fetch使用 阅读全文
posted @ 2017-10-27 10:38 fm060 阅读(130) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页