$。getJSON不适用于httpd。 但是这些代码在IIS7中运行良好。
如何使用httpd?
运行$ .getJSON $.getJSON("/ihis/casesRecieve/loadHospitalList.php", function(json){
$("#hospital").autocomplete({
source: json,
change: function(){
var engineer = $.post("/ihis/casesRecieve/loadEngineer.php",{hospital: $("#hospital").val()});
engineer.done(function(data){
$("#engineer").val(data);
});
$("#division").load("/ihis/casesRecieve/loadDivision.php",{
hospital: $("#hospital").val()
},function(){
$("#division option:eq(0)").attr("selected","selected");
$("#contact").load("/ihis/casesRecieve/loadContact.php",{
division: $("#division option:selected").val(),
hospital: $("#hospital").val()
});
$("#instrument").load("/ihis/casesRecieve/loadInstrument.php",{
division: $("#division").val(),
hospital: $("#hospital").val()
});
$("#division").show();
$("#contact").show();
$("#instrument").show();
});
}
});
});
请帮助〜