上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页
摘要: 原因:JSON.stringify是转换为什么格林披治时间,什么UTC时间的,反正就不是东八区的时间 阅读全文
posted @ 2019-06-21 10:39 苏小白啊 阅读(1644) 评论(0) 推荐(0) 编辑
摘要: GitHub:https://github.com/avwo/whistle/blob/master/README-zh_CN.md 安装具体教程地址:https://wproxy.org/whistle/install.html 步骤: 1.全局安装node,全局安装whistle cmd->进入 阅读全文
posted @ 2019-06-13 15:25 苏小白啊 阅读(2822) 评论(0) 推荐(0) 编辑
摘要: 下载nginx-1.14.0 更改conf中的文件nginx-1.14.0 --》 conf 编辑conf中的nginx.conf文件 使用代理的页面 我当前项目执行dingCourse.html时候的路径是这样的 注意:每次更改代码之后,都要重新打包项目(npm run build)--》在进程中 阅读全文
posted @ 2019-05-27 15:07 苏小白啊 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: this.listData.forEach(ele => { if (ele.imgUrl) { num++ axios({ url: `/file/views/${ele.imgUrl}`, methods: 'get', responseType: 'blob', }).then((data) 阅读全文
posted @ 2019-05-23 17:26 苏小白啊 阅读(780) 评论(0) 推荐(0) 编辑
摘要: function runimg(img) { axios({ url: `/file/download/${img}`, methods: 'get', responseType: 'blob'//接收的值类型 }).then((data) => { let blob = data.data; le 阅读全文
posted @ 2019-05-23 14:48 苏小白啊 阅读(2772) 评论(0) 推荐(0) 编辑
摘要: 1.// 判断款式来源所有数据是否相同 let holderName=['1','2','1','1'] let b=0 for (var i = 0; i < holderName.length; i++) { if (holderName[i] !== holderName[0]) { b++ 阅读全文
posted @ 2019-05-09 14:19 苏小白啊 阅读(7700) 评论(0) 推荐(0) 编辑
摘要: 使用ES6的Object.keys()方法与4方法类似,是ES6的新方法, 返回值也是对象中属性名组成的数组var data = {};var arr = Object.keys(data);alert(arr.length == 0);//true 阅读全文
posted @ 2019-04-25 16:31 苏小白啊 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.click.stop阻止点击事件继续传播 <button @click.stop="dothis">阻止单击事件继续传播</button> 2.@input监听input输入事件 <input :type="type" :value="value" :placeholder="placehold 阅读全文
posted @ 2019-04-23 18:21 苏小白啊 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 1.Array可以使用下标,Map和Set不能使用下标,ES6引入了iterable类型,Array,Map,Set都属于iterable类型,它们可以使用for...of循环来遍历: var a = ['A', 'B', 'C']; var s = new Set(['A', 'B', 'C']) 阅读全文
posted @ 2019-04-19 18:36 苏小白啊 阅读(737) 评论(0) 推荐(1) 编辑
摘要: 1.forEach和map的相同点 都是数组的方法 都是用来遍历数组 两个函数都有4个参数:匿名函数中可传3个参数item(当前项),index(当前项的索引),arr(原数组),还有一个可选参数this 匿名函数中的this默认是指向window的 对空数组不会调用回调函数 不会改变原数组(某些情 阅读全文
posted @ 2019-04-04 10:22 苏小白啊 阅读(3653) 评论(0) 推荐(1) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页