上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: Tips + 组件是个状态机,修改状态(setState(data, callback))可以触发UI的重新渲染 + componentDidMount,组件渲染好了以后会自动调用 + this.props不会改变的特性 this.state会改变的特性 + 自定义组件首字母大写,单html no... 阅读全文
posted @ 2015-11-10 16:09 fannet 阅读(506) 评论(0) 推荐(0) 编辑
摘要: "bind" 阅读全文
posted @ 2015-11-10 10:56 fannet 阅读(112) 评论(0) 推荐(0) 编辑
摘要: with nolock 可以读脏数据,读的时候不向资源申请锁,不会被排它锁block readpast 不读有锁的数据,普通的读会被排他锁block 阅读全文
posted @ 2015-11-04 14:45 fannet 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 索引就是排序 + outer join笛卡儿积, inner join看情况。 可以用临时表加update的方式把outer join 替换成inner join提高性能。 + 用union代替where中的or 和join(不同表时) + join的列有索引,select 中的列能被索引覆盖... 阅读全文
posted @ 2015-11-03 10:56 fannet 阅读(110) 评论(0) 推荐(0) 编辑
摘要: set statistics io on 查看读写,sql读写的单位是一页8k,实际存储8060byte reads:逻辑读,缓存中取数据 physical reads:物理读,磁盘读到缓存 read ahead reads:预读,生成执行计划时估计的去读数据 DMV(sqlserver重启后... 阅读全文
posted @ 2015-11-03 10:25 fannet 阅读(162) 评论(0) 推荐(0) 编辑
摘要: instanceof obj instanceof function 沿着obj.__proto__查找,同时沿着function.prototype查找,如果能指向同一个对象则返回true 阅读全文
posted @ 2015-11-02 11:30 fannet 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 浏览器缓存 200(from cache) 不设缓存时这两个都需要置0,只有get可以被缓存 Expires http1.0的response头,设定过期时间,过期是会做资源更新检测。 (本地时间和服务器有差异问题) Cache control:max age(都定义时优先expires)... 阅读全文
posted @ 2015-10-26 13:45 fannet 阅读(856) 评论(0) 推荐(0) 编辑
摘要: 减少请求数 + 合并css,js文件,合并背景图 + css图标,icon font + 浏览器缓存 减小请求大小 + Gzip + 延迟图片加载 阅读全文
posted @ 2015-10-26 11:21 fannet 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在服务端: idel timeout:默认20min,20分钟内没有收到请求,工作进程则从内存卸载 recycling:工作进程按时重启,防止内存泄露问题 影响: 他们都会导致session丢失,login变logout idel还会导致第一次访问慢,因为工作进程要重新加载到内存 "link... 阅读全文
posted @ 2015-10-26 10:25 fannet 阅读(828) 评论(0) 推荐(0) 编辑
摘要: ES6教程 对象字面量+ 方法属性 let obj = { // before foo: function() { return 'foo' }, // after bar() { return 'bar' } }+ __proto__ let o = { __proto__: new Foo()... 阅读全文
posted @ 2015-09-30 10:49 fannet 阅读(374) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页