// 下拉菜单的数据绑定
var gradeData=['高一','高二','高三']
var grade = document.getElementById("grade")
$(document).ready(function(){
gradeData.forEach(element=>{
var option = document.createElement("option")
option.innerHTML = element
document.getElementById("grade").add(option)
form.render("select") //一定要加上这一句,让select重新渲染
})
})
var gradeData=['高一','高二','高三']
var grade = document.getElementById("grade")
$(document).ready(function(){
gradeData.forEach(element=>{
var option = document.createElement("option")
option.innerHTML = element
document.getElementById("grade").add(option)
form.render("select") //一定要加上这一句,让select重新渲染
})
})