上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页
摘要: 首先我要说一下打印的思路:(往往开发中打印界面和目标界面并不一样,我们可以在打印的时候做一些操作) 1.将页面dom保存起来存在文档碎片里面 let fragment = this.nodeToFragment(document.body) 2.将生成的图片放在body里面(我在开发的过程中遇到了, 阅读全文
posted @ 2020-02-18 11:49 国服第一李师师 阅读(708) 评论(0) 推荐(0) 编辑
摘要: 实现局部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 国服第一李师师 阅读(171) 评论(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 国服第一李师师 阅读(342) 评论(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 国服第一李师师 阅读(773) 评论(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 国服第一李师师 阅读(534) 评论(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 国服第一李师师 阅读(344) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Titile</title> <style type="text/css"> .test1{ display: -webkit-box; d 阅读全文
posted @ 2019-10-15 20:56 国服第一李师师 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 首先说一下,Object.create()创造出来的 Object.create({pname:'plishishi'},{name:{ value:'lishishi'}}) 现在看到的第一个参数里面的对象就是__proto__里面的属性 除了这种写法还可以写成Object.create(Obje 阅读全文
posted @ 2019-10-13 21:13 国服第一李师师 阅读(269) 评论(1) 推荐(0) 编辑
摘要: function Dog(name) { this.name = name this.say = function () { console.log('name = ' + this.name) } } function Cat(name) { this.name = name this.say = 阅读全文
posted @ 2019-09-21 15:43 国服第一李师师 阅读(142) 评论(0) 推荐(0) 编辑
摘要: .center-frame{ height:300px; width:100%; overflow-y:scroll; } .center-frame::-webkit-scrollbar{ width: 8px; height: 16px; background-color: #F5F5F5; } 阅读全文
posted @ 2019-09-16 19:52 国服第一李师师 阅读(119) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页