JavaWeb-WeChatMini-master/wechatmini/examination_system/pages/teacher/mark/mark.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// pages/teacher/mark/mark.js
Page({
/**
* 页面的初始数据
*/
data: {
studentid:0,
courseid:0,
selectedCourse:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
that.setData({
studentid: options.studentid,
courseid: options.courseid
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
var that = this;
var studentid = that.data.studentid;
var courseid = that.data.courseid;
wx.request({
url: "http://120.79.73.27:8080/Examination_System/wxteacher/wxmark1",
data: { 'studentid': studentid,
'courseid': courseid },
method:"POST",
header: {
'content-type': 'application/x-www-form-urlencoded'
},
success: function (res) {
that.setData({
selectedCourse: res.data.selectedCourse
});
}
})
},
formSubmit:function(e){
var that = this;
var studentid = e.detail.value.studentid;
var name = e.detail.value.name;
var mark = e.detail.value.mark;
var courseid = that.data.courseid;
wx.request({
后面还有 60 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。