摘要: 地址:https://segmentfault.com/a/1190000007642740?utm_source=tuicool&utm_medium=referral 阅读全文
posted @ 2016-12-29 18:46 fireporsche 阅读(221) 评论(0) 推荐(0) 编辑
摘要: http://bbs.egret.com/thread-1752-1-1.html http://bbs.egret.com/thread-1912-1-1.html 阅读全文
posted @ 2016-12-28 22:14 fireporsche 阅读(953) 评论(0) 推荐(0) 编辑
摘要: es5学习地址:http://www.zhangxinxu.com/wordpress/2013/04/es5%E6%96%B0%E5%A2%9E%E6%95%B0%E7%BB%84%E6%96%B9%E6%B3%95/#foreach es6学习地址:http://gank.io/post/564 阅读全文
posted @ 2016-12-28 11:38 fireporsche 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Mixins 利用React的Mixins,编写的代码就像这样的: Mixins有点类似AOP。所谓的mixins就是将组件里的方法抽出来。实际上Mixins里的this是指向组件的,使用了Mixins以后,组件也可以调用Mixins里的方法。 组件调用Mixins方法 控制台打印: 生命周期方法 阅读全文
posted @ 2016-12-27 23:25 fireporsche 阅读(417) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>实践题 - 选项卡</title> <style type="text/css"> /* CSS样式制作 */ li{ list-style-type:none; 阅读全文
posted @ 2016-12-27 17:37 fireporsche 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 一般事件 事件 浏览器支持 描述 onClick IE3|N2|O3 鼠标点击事件,多用在某个对象控制的范围内的鼠标点击 onDblClick IE4|N4|O 鼠标双击事件 onMouseDown IE4|N4|O 鼠标上的按钮被按下了 onMouseUp IE4|N4|O 鼠标按下后,松开时激发 阅读全文
posted @ 2016-12-27 16:23 fireporsche 阅读(938) 评论(0) 推荐(0) 编辑
摘要: 1、join()方法: Array.join()方法将数组中所以元素都转化为字符串链接在一起,返回最后生成的字符串。也可以指定可选的字符串在生成的字符串中来分隔数组的各个元素。如果不指定分隔符,默认使用逗号。案例如下: ? 1 2 3 4 var a=[1,2,3]; a.join();//=> " 阅读全文
posted @ 2016-12-27 16:11 fireporsche 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1、charCodeAt方法返回一个整数,代表指定位置字符的Unicode编码。 strObj.charCodeAt(index) 说明: index将被处理字符的从零开始计数的编号。有效值为0到字符串长度减1的数字。 如果指定位置没有字符,将返回NaN。 例如: var str = "ABC";  阅读全文
posted @ 2016-12-27 15:54 fireporsche 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 学习地址:https://my.oschina.net/leogao0816/blog/379488 阅读全文
posted @ 2016-12-26 22:25 fireporsche 阅读(253) 评论(1) 推荐(0) 编辑
摘要: 1、对象的表示方法,以下是对象的两种方法:第二种方法是使用函数构造器来创建一个对象。 2、对象的一种表达方式,这种方式更像Java中对象的创建,就是用一个new来创建一个对象实例。面向对象的封装。样式为:(function(){...}()),后面的这个括号()表示的是调用...的东西 以上需要提出 阅读全文
posted @ 2016-12-25 13:15 fireporsche 阅读(176) 评论(0) 推荐(0) 编辑