Cecilxx
Cecilxx
楼上两位老哥,有个问题请教, 在不使用Immutable的情况下: ```js constructor () { super() this.state = { data: { num: 0 } } } add () { this.setState({ data: { num: 1 } }) } shouldComponentUpdate (nextProps,...
```js Object.prototype.map= function(cb) { const obj = this const result = {} for(key in obj) { if (obj.hasOwnProperty(key)) { const item = cb(key, obj[key]) result[key] = item } } return...
@gongyucheng 我在ios上试了一下是可以的,能提供下相关代码和调试机型吗
@gongyucheng 图片加载不出来 代码直接复制上来吧
@gongyucheng 你试下预览看看?
@gongyucheng 怀疑是ide在真机调试模式下特有的报错,应该是对canvas的报错,预览都是可以的,真机调试确实不行
模拟器不能运行吗?可以提供一下代码
使用场景是什么?
@onionnet606  改成`function`试试?