// pages/lianxi/index.js const api = require("../../utils/request.js"); var util = require('../../utils/util.js') Page({ /** * 页面的初始数据 */ data: { results: [], query:{ page:1, limit:10 } }, /** * 生命周期函数--监听页面加载 */ onLoad: function () { var that = this that.getList(that.data.query) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, getList: function () { var that = this api.request('/examtest/examtest/self/', 'GET', that.data.query).then(res => { for(var i=0;i