用户:3838438
2018年08月11日
js(jsp)二级联动并且将java数组赋值给js
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
String [][]str = {{"40000","09401","09402"},{"40001","09403","09404"}};
%>
add scorefunction select(){
var bj=document.getElementById('class');
obj.options.length=0;
var course = document.getElementById("course").value;
alert(course);
for(int i=0;i
if(course == ""){
for(int j=1;j
var ption = document.createElement("option");
oOption.innerHTML = ""
oOption.value = ""
document.getElementById("class").options.add(oOption);
}
var arr = "";
alert(arr);
}
课程:
班级: