摘要: && 和 || 操作符的一些用法 一、||(逻辑或) alert(0||1); //1 alert(2||1); //2 1、只要“||”前面为false,不管“||”后面是true还是false,都返回“||”后面的值。 2、只要“||”前面为true,不管“||”后面是true还是false,都 阅读全文
posted @ 2017-09-14 14:17 liumcb 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 参考转载:链接:http://www.jianshu.com/p/83bda9cd8c67 1、refs <input type="text" ref="input"> <div ref="div">222</div> <div ref={this.refHandle.bind(this)}>333 阅读全文
posted @ 2017-09-14 11:56 liumcb 阅读(171) 评论(0) 推荐(0) 编辑