Lulutia
Lulutia
@Ma63d 那为什么把Father换成Array就不行了呢? 因为Array构造函数执行时不会对传进去的this做任何处理。 关于你写的上面这段,实际换成Array是可以的,博主方式其实没问题(除了语法错误),他是直接new FakeArray(),实际添加了一个叫__proto__的属性,而且这个__proto__指向FakeArray()的prototype对象,其实和你后面直接函数调用在FakeArray里实现的一个意思。
@Ma63d ok,没注意是 构造函数 初始化的 问题,那Array是不行的,就算方法可以重写,但是初始化没法搞,值也是不对的
I tried the repo of yours. And as for the warning of iOS, i just add the e.persist() before store.increase(). And i test the tool on the android. it works...
I tested the implementation now you use in the TabBarIOS, it throws the warnings as well, but not for the TabBarIOS.Item, but for the TabBarIOS itself. I changed it as...