2018年5月25日
摘要:
1.如果传的是基本类型的值,子组件里改变该值,父组件无变化 2.如果传的是对象,子组件里改变对象里的变量,父组件会变化 3.如果传的是函数,this不会继续指向父组件对象了,如果需要this指向父组件,需要使用bind绑定
阅读全文
posted @ 2018-05-25 10:00
chen8840
阅读(321)
推荐(0)
2018年3月22日
posted @ 2018-03-22 14:37
chen8840
阅读(138)
推荐(0)
2018年3月21日
摘要:
这样的布局当body出现滚动条时container会往左移动7px左右 为了消除这样的滚动,在.container上加入如下规则
阅读全文
posted @ 2018-03-21 22:23
chen8840
阅读(751)
推荐(0)
2018年3月9日
摘要:
History API与浏览器历史堆栈管理
阅读全文
posted @ 2018-03-09 17:03
chen8840
阅读(524)
推荐(0)
2018年3月8日
摘要:
在createElement之后,直接把这个div append到body中,是不会触发css3 transition动画的 必须要让浏览器计算div的css属性后,然后再设置div的style,才会触发transition动画 代码如下
阅读全文
posted @ 2018-03-08 15:47
chen8840
阅读(628)
推荐(0)
2018年3月2日
摘要:
escape:将string转成unicode字符串 unescape:使用类似String.fromCharCode的机制将unicode字符串转成string encodeURIComponent:将string转成utf-8字符串 decodeURIComponent:将utf-8字符串转成s
阅读全文
posted @ 2018-03-02 10:24
chen8840
阅读(334)
推荐(0)
2017年6月15日
摘要:
1.CSS 可视化CSS资料 http://cssreference.parryqiu.com 2.WebPack 视频教程https://www.bilibili.com/video/av11128844
阅读全文
posted @ 2017-06-15 16:44
chen8840
阅读(145)
推荐(0)
2017年3月16日
摘要:
Java里面内置字符串全部是utf-16编码,详细的编码方式看这里
阅读全文
posted @ 2017-03-16 17:10
chen8840
阅读(4600)
推荐(0)
2016年6月23日
摘要:
Linux 技巧:让进程在后台可靠运行的几种方法
阅读全文
posted @ 2016-06-23 10:04
chen8840
阅读(151)
推荐(0)
2016年5月13日
摘要:
有个GitHub,专门解决C++编译的时候出的问题 地址
阅读全文
posted @ 2016-05-13 19:18
chen8840
阅读(217)
推荐(0)