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里面的内容是 : 阅读全文
posted @ 2019-12-20 19:09 国服第一李师师 阅读(172) 评论(0) 推荐(0) 编辑
摘要:切换目录 目录的操作 新建目录 mkdir name //新建文件 查看目录 ll //查看当前目录下的文件 find / -name '*test*' //查看指定目录下的name中包含test的文件 修改目录 mv aaa bbb //将aaa重命名为bbb mv aaa /root //将aa 阅读全文
posted @ 2019-12-18 16:42 国服第一李师师 阅读(344) 评论(0) 推荐(0) 编辑
摘要:首先看一下call方法 Function.prototype.MyCall = function(thisObj){ console.log(thisObj) // 这里面就是实例化对象 console.log(this) //这里面就是Cluster let obj = {} obj = this 阅读全文
posted @ 2019-12-14 12:03 国服第一李师师 阅读(786) 评论(0) 推荐(0) 编辑
摘要:updateImgList() { const reg = /\.(\w+)$/ const __arrPromise__ = [] const self = this for (let i = 0; i < self.totalPicture[self.pageNum].length; i++) 阅读全文
posted @ 2019-12-13 12:10 国服第一李师师 阅读(543) 评论(0) 推荐(0) 编辑
摘要:function newInstanceof(x,y){ while(x.__proto__ != null){ if(x.__proto__ == y.prototype){ return true break } x.__proto__ = x.__proto__.__proto__ } if( 阅读全文
posted @ 2019-12-02 16:53 国服第一李师师 阅读(345) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示