android - React Native中的this,怎么理解?
黄舟
黄舟 2017-04-18 09:22:00
0
2
619
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
迷茫

So strange, why do you write it like this? I feel like you can just use this.updateNum(); and this.updatePW(); to get it done, right?

Peter_Zhu

The person above is right. There is a problem with your writing method. There is no need for bind in the constructor. RN generally needs bind when calling methods in a class in render, which means changing the scope so that its methods act on the current operation object

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template