月份:2016年8月

React Native error: Element type is invalid: expected a string or a class/function but got: object

<blockquote> <pre>导入自己写的组件时,加了括号, import {MyListview} from './ui/base/xListview'; 需修改成 <strong></strong></pre> <pre>import MyListview from './ui/base/xListview';</pre> </blockquote> <pre></pre> <blockquote> <pre>xListview里代码:</pre> <pre>im[......]</pre></blockquote><p class='read-more'><a href='http://www.pandablessing.com/archives/156'>Read more</a></p>...

ERROR: Unknown option –no-pretty

mac <blockquote>sudo npm uninstall -g watchman sudo chown -R 自己电脑用户名:admin /usr/local sudo npm install watchman</blockquote> 再次执行react-native run-ios 即可...

JavaScript开发webApp

开始尝试使用js完成webapp的开发。   采用框架React.js + Redux来实现应用开发。 <a href="http://www.pandablessing.com/wp-content/uploads/2016/08/37932444b5c747f9b5f074d488e512d6_r.jpg"><img class="size-medium wp-image-147" src="http://www.pandablessing.com/wp-content/uploads/2016/08/37932444b5c747f9b5f074d488e512d6_r-300x225.jpg" alt="react and redux" width="300" height="225" /></a>react and redux...

js局部变量如何延迟调用,通过函数闭包,避免设置全局变量

在开发中,有时候需要对生成的局部变量延迟调用,在未做处理的情况下。看例子:   <blockquote>var num = 6; var arr = [4,3,2,1,5,6,8]; var event = cc.EventEmitter.create(); for(var i ,i &[......]</blockquote><p class='read-more'><a href='http://www.pandablessing.com/archives/126'>Read more</a></p>...