随笔分类 -  6_新技术_React Native

摘要:http://blog.csdn.net/chichengjunma/article/details/52920137 阅读全文
posted @ 2017-05-27 23:07 RoperLee 阅读(85) 评论(0) 推荐(0) 编辑
摘要:https://segmentfault.com/a/1190000006076637 总结起来其实就是如下几条规则: 1、方法中的this代表的是当前代码的上下文,它可以是一个对象,或者是全局window 2、this是动态的,它在函数运行时被确定而非在函数声明时被确定 3、直接调用一个方法,那么 阅读全文
posted @ 2016-12-15 10:03 RoperLee 阅读(107) 评论(0) 推荐(0) 编辑
摘要:需要注意的是,应该把这种基础的方法,封装成Util类。因为很多地方需要使用 http://reactnative.cn/docs/0.23/pixelratio.html https://segmentfault.com/a/1190000002658374 阅读全文
posted @ 2016-12-14 18:03 RoperLee 阅读(849) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-12-14 14:43 RoperLee 阅读(102) 评论(0) 推荐(0) 编辑
摘要:1、let 声明一个块范围变量 使用let语句声明一个变量,改变量的范围限于声明它的块中。可以在声明变量时为变量赋值,也可以稍后给变量赋值 使用let声明的变量,在声明前无法使用,否则将会导致错误 如果未在let语句中初始化变量,则将自动为其分配undefined ES6建议不再使用var声明变量, 阅读全文
posted @ 2016-12-13 21:06 RoperLee 阅读(123) 评论(0) 推荐(0) 编辑
摘要:相关链接:React-Native ES6 语法简介 《》模块 1、引入React包 2、导出与引用单个类 《》组件 1、定义组件 2、给组件定义方法 3、定义组件的属性类型和属性默认值 4、初始化State 阅读全文
posted @ 2016-12-13 13:03 RoperLee 阅读(129) 评论(0) 推荐(0) 编辑
摘要:官网:https://facebook.github.io/react-native/docs/troubleshooting.html 中文网:http://reactnative.cn/docs/0.39/getting-started.html ES6:http://es6.ruanyifen 阅读全文
posted @ 2016-12-13 09:56 RoperLee 阅读(253) 评论(0) 推荐(0) 编辑
摘要:http://www.lcode.org/react-native/ http://www.jianshu.com/p/dd69db0a6451 http://reactnative.cn/docs/0.39/tutorial.html#content http://www.cnblogs.com/ 阅读全文
posted @ 2016-12-12 22:09 RoperLee 阅读(133) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示