通过JS获取前台数据,并向后台一般处理程序传递

  • Post author:
  • Post category:其他


function AddTeachCourse() {

//取得教师ID var strTeacherID = $("#hidFieldSaveTeacherID").val(); //alert("教师ID="+txtTeacherID); //取得课程ID var strCourseID = $("#hidFieldSaveCourseID").val(); //alert("课程ID="+txtCourseID); //取得上课班ID var strTeachClassID = document.getElementById("ddlTeachClass");
var TeachClassID = strTeachClassID.options[strTeachClassID.selectedIndex].value; //得到ID //取得课程分配的ID(Indexing) var Indexing = $("#hidFieldSaveIndexing").val(); //取得学生数量 var stuNum = $("#txtStuNum").val(); //取得listbox框ID var listStudent = document.getElementById("lsboxStudent");
//取得listbox框中元素长度 var lstStuLength = listStudent.options.length; // var objJsons=""; // var StuArrayObj = new Array(); //创建一个数组,存储学生ID // StuArrayObj[i] = Studen



版权声明:本文为baidu_33430214原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。