摘要: { title: '序号', render:(text,record,index)=>`${index+1}`, } 阅读全文
posted @ 2019-12-04 16:49 迷路的吃货 阅读(1899) 评论(0) 推荐(0)
摘要: 1、意外的全局变量 在以下代码中,typeof a 和 typeof b的值分别是什么: function foo() { let a = b = 0; a++; return a; } foo(); typeof a; // => ???typeof b; // => ??? 答案:让我们仔细看看 阅读全文
posted @ 2019-11-26 10:52 迷路的吃货 阅读(149) 评论(0) 推荐(0)
摘要: 小伙伴们,在使用webpack搭建脚手架时,一定要注意全局安装和本地安装,之前我就忘了全局安装了,导致项目运行一直报错,浪费了很长时间 1、全局安装 npm install webpack -g npm install webpack-dev-server -g 2、查看版本号 npm info w 阅读全文
posted @ 2019-11-18 09:53 迷路的吃货 阅读(270) 评论(0) 推荐(0)
摘要: 1.安装node.js和npm; 可自行到node官网下载,下载node完成后,npm也会自行下载完成。 2.通过cmd执行 node -v 和 npm -v 查看是否下载成功和下载成功后的版本号。 3.安装好的npm的源默认是国外的源,会因为网络原因导致执行npm操作有延时,我们可以切换npm的源 阅读全文
posted @ 2019-09-23 11:09 迷路的吃货 阅读(3864) 评论(0) 推荐(0)