function geteachweb(ter_id,whom){
var kc_id=$("#kc_id").val();
var weboption="<option value=\"0\">请选择</option>";(初始化值)
$.ajax({
type: "POST",
url: "/index.php/adc_teach/geteachweb",
data:{
"ter_id":ter_id,
"kc_id":kc_id,
"whom":whom
},
dataType: "json",
success: function(data){
if (data!=false){
for(i=0;i<data.length;i++){
weboption+='<option value=\"'+data[i].web_id+'\">'+data[i].web_title+'</option>';
}
}
}//endsuccess
}); //endajax
return weboption;(断点1)
}