摘要: /** * Sample React Native App * https://github.com/facebook/react-native */'use strict';var React = require('react-native');var { AppRegistry, Style... 阅读全文
posted @ 2016-01-11 22:15 daomul 阅读(2475) 评论(0) 推荐(0) 编辑
摘要: 1、基本上一句话,就是本地的node太旧了,跟不上React_Native的节奏,所以需要更新node,但是单纯的更新node丫丫竟然不让我跟,因为是用Homebrew来管理的,所以先update了下brewbrew update && brew upgrade && brew cleanupbre... 阅读全文
posted @ 2016-01-10 15:01 daomul 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: 从左侧弹出:var windowWidth = window.innerWidth;$(atlas_list).css({ "transition":"none","-webkit-transition":"none","transform": "translate3d(" + (windowWid... 阅读全文
posted @ 2016-01-08 12:13 daomul 阅读(4371) 评论(0) 推荐(0) 编辑
摘要: JS一般判断对象是否为空,我们可以采用: if(!x)的方式直接判断,但是如果是一个空对象,比如空的JSON对象,是这样的:{},简单的判断是不成功的,因为它已经占用着内存了,如果是JQuery的话,直接使用isEmptyObject()来判断,如果是JS,可以采取下面的方法1:/* * 检测对象... 阅读全文
posted @ 2016-01-04 19:33 daomul 阅读(14747) 评论(0) 推荐(0) 编辑
摘要: 1、语法上,根据生命周期方法执行的顺序编写代码(1 生命周期方法[getDefaultProps,getInitialState,componentWillMount,componentDidMount,componentWillReceiveProps,shouldComponentUpdate,... 阅读全文
posted @ 2016-01-03 17:23 daomul 阅读(690) 评论(0) 推荐(0) 编辑