比如下面的代碼我定義了一個test方法我想在頁面加載完成后自動調用可為什么無效呢?Page({data:{motto:'HelloWorld',userInfo:{},hasUserInfo:false,canIUse:wx.canIUse('button.open-type.getUserInfo')},test(){console.log(1)},onLoad:function(){this.test}})
萌新求教!小程序自定義方法寫在Page的哪里?
神不在的星期二
2019-06-19 09:54:30