上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 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)
摘要: 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)
摘要: 怎么改变原始丑陋的滚动条呢? 阅读全文
posted @ 2018-08-20 11:32 大耳朵小虎 阅读(134) 评论(0) 推荐(0)
摘要: 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)
摘要: 1. 回掉2. promise3. Generator4. Async/await 阅读全文
posted @ 2018-08-09 22:09 大耳朵小虎 阅读(77) 评论(0) 推荐(0)
摘要: WebSocket https://www.cnblogs.com/jingmoxukong/p/7755643.html 阅读全文
posted @ 2018-08-09 16:54 大耳朵小虎 阅读(65) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/leolovexx/p/5917396.html 阅读全文
posted @ 2018-07-27 09:28 大耳朵小虎 阅读(52) 评论(0) 推荐(0)
摘要: 1.)在组建卸载的时候保存滚动条 componentWillUnmount(){ // 记录滚动条 const distance = this.getScrollTop(); this.props.scrollSiteActions.update(distance) //保存到redux } 2.) 阅读全文
posted @ 2018-07-26 15:43 大耳朵小虎 阅读(170) 评论(0) 推荐(0)
摘要: 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)
摘要: 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 下一页