会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大耳朵小虎
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
13
下一页
2018年8月30日
4. Object
摘要: 1. Object.is( ); //用来判断,不同等 == 与 接近。NaN作出的调整 let obj={a:1,b:2}; Object.is(obj,obj);//true Object.is(obj,{obj});//false Object.is({},{});//false Object
阅读全文
posted @ 2018-08-30 10:09 大耳朵小虎
阅读(100)
评论(0)
推荐(0)
2018年8月24日
3. string
摘要: let str = "my string"; 1. str.startsWith('my'); //true2.str.endsWith('my'); //false3.str.includes('str'); //true4.str.repeat(3); //'my string my strin
阅读全文
posted @ 2018-08-24 11:33 大耳朵小虎
阅读(72)
评论(0)
推荐(0)
2018年8月20日
8. 滚动条美化
摘要: 怎么改变原始丑陋的滚动条呢?
阅读全文
posted @ 2018-08-20 11:32 大耳朵小虎
阅读(134)
评论(0)
推荐(0)
2018年8月19日
7. 单位,移动布局
摘要: 1.)在移动端布局时,需要一个全屏的高度,可以设置为:100vh 2.)iphone6(375 x 667)来设计,基准值为100。 document.documentElement.style.fontSize = document.documentElement.clientWidth / 3.
阅读全文
posted @ 2018-08-19 08:09 大耳朵小虎
阅读(121)
评论(0)
推荐(0)
2018年8月9日
2. js的异步
摘要: 1. 回掉2. promise3. Generator4. Async/await
阅读全文
posted @ 2018-08-09 22:09 大耳朵小虎
阅读(77)
评论(0)
推荐(0)
2. 即时通讯
摘要: WebSocket https://www.cnblogs.com/jingmoxukong/p/7755643.html
阅读全文
posted @ 2018-08-09 16:54 大耳朵小虎
阅读(65)
评论(0)
推荐(0)
2018年7月27日
4. 日期
摘要: https://www.cnblogs.com/leolovexx/p/5917396.html
阅读全文
posted @ 2018-07-27 09:28 大耳朵小虎
阅读(52)
评论(0)
推荐(0)
2018年7月26日
3. 页面滚动条位置恢复
摘要: 1.)在组建卸载的时候保存滚动条 componentWillUnmount(){ // 记录滚动条 const distance = this.getScrollTop(); this.props.scrollSiteActions.update(distance) //保存到redux } 2.)
阅读全文
posted @ 2018-07-26 15:43 大耳朵小虎
阅读(170)
评论(0)
推荐(0)
2018年7月4日
2. 添加版本号
摘要: var cwd = '"' + process.cwd() + '"';// 获取git版本var fs = require("fs")var gitHEAD = fs.readFileSync('.git/HEAD', 'utf-8').trim() // ref: refs/heads/deve
阅读全文
posted @ 2018-07-04 10:07 大耳朵小虎
阅读(113)
评论(0)
推荐(0)
2018年7月3日
1. webpack 复制文件
摘要: 1. npm install --save-dev copy-webpack-plugin2. var CopyWebpackPlugin = require('copy-webpack-plugin'); 3. new CopyWebpackPlugin([ {from: './ip.txt', to:'ip.txt'} ]);======= from 定义要拷贝的源目录 ...
阅读全文
posted @ 2018-07-03 22:59 大耳朵小虎
阅读(313)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
13
下一页
公告