WAService.js:1 thirdScriptError page is not defined Page pages/picture/picture catch error in lifeCycleMethod onLoad function ReferenceError: page is not defined
var app = getApp() var http = require( ‘…/…/utils/util’ ) var url = 'http://japi.juhe.cn/joke/img/text.from’ Page( { data: { page: 1, loadingHide: false, hideFooter: true, picList: [] }, onLoad: function( options ) { // 页面初始化 options为页面跳转所带来的参数 var that = this //请求笑话列表 wx.request({ url: url, method: ‘GET’, data: { key: app.globalData.appkey, page: page, pagesize: app.globalData.pagesize }, success:function(res) { that.setData({ picList: res.data.result.data, }) }
})