2022-06-06 wepy小程序 this调用方法报is not a function

报错:xxx is not a function

原因:xxx方法写在了methods里面,this调用不了methods内的函数。

解决方案:把xxx方法写在methods外面即可。

posted @ 2022-06-06 09:38  叶乘风  阅读(197)  评论(0编辑  收藏  举报