会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
国服第一李师师
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
20
下一页
2019年12月18日
linux
摘要: 切换目录 目录的操作 新建目录 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)
2019年12月14日
介绍一下call,apply,bind方法实现,源于MDN中的bind
摘要: 首先看一下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)
2019年12月13日
二进制流转base64加快速度
摘要: 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)
2019年12月2日
手写一个instanceof
摘要: 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)
2019年10月15日
添加省略号
摘要: <!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)
2019年10月13日
有关自有属性,原型属性的问题
摘要: 首先说一下,Object.create()创造出来的 Object.create({pname:'plishishi'},{name:{ value:'lishishi'}}) 现在看到的第一个参数里面的对象就是__proto__里面的属性 除了这种写法还可以写成Object.create(Obje
阅读全文
posted @ 2019-10-13 21:13 国服第一李师师
阅读(300)
评论(1)
推荐(0)
2019年9月21日
实现一个new
摘要: 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)
2019年9月16日
滚动条样式修改
摘要: .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)
2019年8月24日
备忘录实现+具体需求应用备忘录
摘要: 首先你要了解设计模式,了解备忘录模式,如果不了解那就先去了解吧. class Cache { // 中间对象 constructor(json) { this.json = json } getJson() { return this.json } } class CacheList { // 缓存
阅读全文
posted @ 2019-08-24 20:05 国服第一李师师
阅读(238)
评论(1)
推荐(0)
2019年8月8日
Math.random生成指定范围的随机数
摘要: 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
下一页
公告