浅析Bootstrip的select控件绑定数据的问题

浅析Bootstrip的select控件绑定数据的问题

此问题让我倒弄了一下午时间,最后终于被我拿下。下面小编把我的功劳分享出来,以此来做个备份,同时也希望能帮助到大家。

具体详情如下所示:

$(function(){
var stu_no = freeUrl();
var data, subname=””,data2;
var sbList = new Array();
$.ajax({
async: false ,
dataType: “json”,
contentType: “application/json”,
type: “post”,
url: “../../control/student/stuMain.asmx/findAllSubject”,
data:”{” “stu_no:” stu_no “}”,
success: function (response) {
data2 = eval(response.d);
$.each(data2, function (i) {
$(“

© 版权声明

相关文章

暂无评论

none
暂无评论...