上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页
摘要: 切换目录 目录的操作 新建目录 mkdir name //新建文件 查看目录 ll //查看当前目录下的文件 find / -name '*test*' //查看指定目录下的name中包含test的文件 修改目录 mv aaa bbb //将aaa重命名为bbb mv aaa /root //将aa 阅读全文
posted @ 2019-12-18 16:42 国服第一李师师 阅读(358) 评论(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 国服第一李师师 阅读(802) 评论(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 国服第一李师师 阅读(551) 评论(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 国服第一李师师 阅读(351) 评论(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 国服第一李师师 阅读(93) 评论(0) 推荐(0)
摘要: 首先说一下,Object.create()创造出来的 Object.create({pname:'plishishi'},{name:{ value:'lishishi'}}) 现在看到的第一个参数里面的对象就是__proto__里面的属性 除了这种写法还可以写成Object.create(Obje 阅读全文
posted @ 2019-10-13 21:13 国服第一李师师 阅读(300) 评论(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 国服第一李师师 阅读(159) 评论(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 国服第一李师师 阅读(137) 评论(0) 推荐(0)
摘要: 首先你要了解设计模式,了解备忘录模式,如果不了解那就先去了解吧. class Cache { // 中间对象 constructor(json) { this.json = json } getJson() { return this.json } } class CacheList { // 缓存 阅读全文
posted @ 2019-08-24 20:05 国服第一李师师 阅读(238) 评论(1) 推荐(0)
摘要: function getRndInteger(min, max) { return Math.floor(Math.random() * (max - min)) + min; } getRndInteger(1,32) function getRndInteger(min, max) { retu 阅读全文
posted @ 2019-08-08 11:04 国服第一李师师 阅读(1179) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页