javascript
MeSKiL
这个作者很懒,什么都没留下…
展开
-
less函数的字符串拼接以及静态资源路径问题
less函数字符串拼接及静态资源路径字符串拼接// 错误.bg-image(@url:'') { background-image: url(@url + 2x.png); @media (-webkit-min-device-pixel-ratio: 3),(min-device-pixel-ratio: 3) { background-image: url(@url + ...原创 2019-10-16 10:34:38 · 1090 阅读 · 1 评论 -
ReactElement
React系列(2) ReactElementReact.createElement做了什么先判断config中内置props(key,ref,self,source)存在且有效,则赋值给新声明的变量再将config中非内置的props 给新声明的props(key和ref不会跟其他config中的变量一起被处理,而是单独作为变量出现在ReactElement上。)判断如果孩子节点为一个...原创 2019-10-09 14:45:27 · 1887 阅读 · 0 评论 -
ReactComponent
React系列(3) ReactComponentreact/src/ReactBaseClasses.jsfunction Component(props, context, updater) { this.props = props; this.context = context; // If a component has string refs, we will ass...原创 2019-10-09 19:03:00 · 142 阅读 · 0 评论