12 2019 档案
摘要:实现局部webpack搭建并打包。 npm init 弄出一个package.json 首先npm i webpack webpack-cli -D 建立一个index.js,content.js.index.html index.html里面引入index.js, index.js里面的内容是 :
阅读全文
摘要:切换目录 目录的操作 新建目录 mkdir name //新建文件 查看目录 ll //查看当前目录下的文件 find / -name '*test*' //查看指定目录下的name中包含test的文件 修改目录 mv aaa bbb //将aaa重命名为bbb mv aaa /root //将aa
阅读全文
摘要:首先看一下call方法 Function.prototype.MyCall = function(thisObj){ console.log(thisObj) // 这里面就是实例化对象 console.log(this) //这里面就是Cluster let obj = {} obj = this
阅读全文
摘要:updateImgList() { const reg = /\.(\w+)$/ const __arrPromise__ = [] const self = this for (let i = 0; i < self.totalPicture[self.pageNum].length; i++)
阅读全文
摘要:function newInstanceof(x,y){ while(x.__proto__ != null){ if(x.__proto__ == y.prototype){ return true break } x.__proto__ = x.__proto__.__proto__ } if(
阅读全文