上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 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 大耳朵小虎 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 怎么改变原始丑陋的滚动条呢? 阅读全文
posted @ 2018-08-20 11:32 大耳朵小虎 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1.)在移动端布局时,需要一个全屏的高度,可以设置为:100vh 2.)iphone6(375 x 667)来设计,基准值为100。 document.documentElement.style.fontSize = document.documentElement.clientWidth / 3. 阅读全文
posted @ 2018-08-19 08:09 大耳朵小虎 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1. 回掉2. promise3. Generator4. Async/await 阅读全文
posted @ 2018-08-09 22:09 大耳朵小虎 阅读(64) 评论(0) 推荐(0) 编辑
摘要: WebSocket https://www.cnblogs.com/jingmoxukong/p/7755643.html 阅读全文
posted @ 2018-08-09 16:54 大耳朵小虎 阅读(55) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/leolovexx/p/5917396.html 阅读全文
posted @ 2018-07-27 09:28 大耳朵小虎 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 1.)在组建卸载的时候保存滚动条 componentWillUnmount(){ // 记录滚动条 const distance = this.getScrollTop(); this.props.scrollSiteActions.update(distance) //保存到redux } 2.) 阅读全文
posted @ 2018-07-26 15:43 大耳朵小虎 阅读(160) 评论(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 大耳朵小虎 阅读(106) 评论(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 大耳朵小虎 阅读(298) 评论(0) 推荐(0) 编辑
摘要: git log 见https://blog.csdn.net/daguanjia11/article/details/73823617 +++++++++++++++++++++++ 使用git log命令,什么参数都没有的话,会以下面的格式输出所有的日志(我当前的git仓库只有三个提交)。如果日志 阅读全文
posted @ 2018-07-02 23:17 大耳朵小虎 阅读(293) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页