uniapp开发在hbuilderX上运行到小程序后,方法里自动生成var _this = this;导致自己申明的var that = this不能使用,值取不出来
使用uniapp运行到小程序后,方法里为什么会自动生成var _this = this?Why is var _this = this automatically generated in the method after running into a small program with uniapp?
使用uniapp运行到小程序后,方法里为什么会自动生成var _this = this?uniapp开发在hbuilderX上运行到小程序后,方法里自动生成var _this = this;导致自己申明的var that = this不能使用,值取不出来
After the uniapp development runs into the applet on hbuilderx, VaR is automatically generated in the method_ this = this; As a result, the declared var that = this cannot be used and the value cannot be taken out
鍥炵瓟锛�
请移步uni-app官方社区
请移步uni-app官方社区
没看懂你这that声明了有什么用,直接用this不行?var _this = this这行代码看着也不影响你的