晴明的博客园 GitHub      CodePen      CodeWars     
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 37 下一页
摘要: express 4.x express.static()express.static(root, [options]) express.static 是 Express 内置的唯一一个中间件。是基于 serve-static 开发的,负责托管 Express 应用内的静态资源。root 参数指的是静 阅读全文
posted @ 2016-05-10 18:44 晴明桑 阅读(197) 评论(0) 推荐(0)
摘要: 可以在服务端渲染view层 React 里,只需更新组件的 state,然后根据新的 state 重新渲染用户界面(不要操作 DOM)。 React 来决定如何最高效地更新 DOM。 常用的通知 React 数据变化的方法是调用 setState(data, callback)。 这个方法会合并(m 阅读全文
posted @ 2016-05-10 18:38 晴明桑 阅读(626) 评论(0) 推荐(0)
摘要: #npm publish -f 或 --force 强制install或 publish 提升版本号 ``` npm version patch ``` ``` major 主要更新 x.0.0minor 次要更新0.x.0patch 补丁0.0.xprerelease 预览版0.0.0-x ``` 阅读全文
posted @ 2016-05-10 12:03 晴明桑 阅读(537) 评论(0) 推荐(0)
摘要: #媒体查询配合rem #js 注意: 1、小数数值处理不同浏览器计算rem转换为px数值时,对于小数点后的数值的处理是有所偏差,rem计算偏差的根源是浏览器内核数字类型的区别,如果浏览器的内核数字类型是float类型,能够较好地支持有小数点的数值。当浏览器内核数字类型是int类型,不支持小数点,会对 阅读全文
posted @ 2016-05-06 00:29 晴明桑 阅读(982) 评论(0) 推荐(0)
摘要: array_pushint array_push ( array &$array , mixed $var [, mixed $... ] ) 将一个或多个单元压入数组的末尾(入栈) array_count_valuesarray array_count_values ( array $input 阅读全文
posted @ 2016-05-04 17:38 晴明桑 阅读(150) 评论(0) 推荐(0)
摘要: flex none | <' flex-grow '> <' flex-shrink >'? || <' flex-basis '>none: none关键字的计算值为: 0 0 auto<' flex-grow '>: 用来指定扩展比率,即剩余空间是正值时此「flex子项」相对于「flex容器」里 阅读全文
posted @ 2016-04-29 16:52 晴明桑 阅读(242) 评论(0) 推荐(0)
摘要: # # 阅读全文
posted @ 2016-04-29 15:05 晴明桑 阅读(129) 评论(0) 推荐(0)
摘要: 传入(继承)参数 # # Array.prototype.slice.call() [].slice.call() array.slice(begin[, end]) #常用将多个参数转换为数组然后进行slice,不传begin则取全部 [].slice.call(arguments) Array. 阅读全文
posted @ 2016-04-29 11:59 晴明桑 阅读(189) 评论(0) 推荐(0)
摘要: # # # 阅读全文
posted @ 2016-04-28 17:42 晴明桑 阅读(182) 评论(0) 推荐(0)
摘要: # # # #property? 阅读全文
posted @ 2016-04-27 22:44 晴明桑 阅读(108) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 37 下一页