es6
嘿吖嘿嘿~
这个作者很懒,什么都没留下…
展开
-
我的vscode配置
{ /** 新版本配置(1.4及以上) **/ //autoFixedOnSave 设置已废弃,采用如下新的设置 "editor.codeActionsOnSave": { "source.fixAll.eslint": false }, "eslint.format.enable": true, //autoFix默认开启,只需输入字符串数组即可 "eslint.validate": ["javascript", "vue", "html"], /** 兼容老版本配置 **/原创 2020-11-27 14:44:17 · 961 阅读 · 0 评论 -
proxy资料收集
proxy详解Webpack-dev-server的proxy用法Webpack devServer中的 proxy 实现跨域原创 2020-11-26 10:34:10 · 150 阅读 · 0 评论 -
解决webpack+vue项目报错“You are using the runtime-only build of Vue where the template compiler is not av”
解决方法如下图红框加一个vue的别名,直接引入vue/dist/vue.esm.js:贴代码,附图: resolve:{ extensions: ['.js', '.json', '.vue'], //扩展名省略配置 alias:{ //模块别名 vue: "vue/dist/vue.esm.js", //加上这一句 '@':resolve('src'), } },...原创 2020-10-20 16:28:15 · 357 阅读 · 0 评论 -
map知识点
[‘1’, ‘2’, ‘3’].map(parseInt)的结果是什么;结果:[‘1’, NaN, NaN]为什么不是[‘1’, ‘2’, ‘3’]呢?原因如下:1、map() 方法返回一个新数组,数组中的元素为原始数组元素调用函数处理后的值。map() 方法按照原始数组元素顺序依次处理元素。map(parseInt)其实是:map(function(item, index){return parseInt(item, index);})复制代码即依次运行的是:parseInt(‘1’原创 2020-10-16 10:53:50 · 407 阅读 · 0 评论