$.ajax({
  url: "../Common/WebAjax.aspx?LjyFlag=TypeTwoID",
  type: "get",
  dataType: "text",
  data: { TypeId: $(this).val() },
  beforeSend: function () {
  $("#type2").html("<img style=\" margin-left:10px; margin-top:10px;\" id=\"loadimg\" src=\"../images/load.gif\" />");
  },
  success: function (Result) {
  $("#type2").find("img").remove();
  if (Result != "none" && Result != null) {
  $("#<%=Lb_Type2.ClientID %>").css("display", "block");
  $("#<%=Lb_Type2.ClientID %>").html(Result);
  }
  else {
  $("#<%=Lb_Type2.ClientID %>").css("display", "none");
  }
    
  },
  Error: function () {
  alert("系统错误");
  }
  });  })  $("#<%=Lb_Type2.ClientID %>").click(function () {
  $("#S_2").html($("#<%=Lb_Type2.ClientID %> option:selected").text());
  });  }) $.ajax({
  url: "../Common/WebAjax.aspx?LjyFlag=TypeTwoID",
  type: "get",
  dataType: "text",
  data: { TypeId: $(this).val() },
  beforeSend: function () {
  $("#type2").html("<img style=\" margin-left:10px; margin-top:10px;\" id=\"loadimg\" src=\"../images/load.gif\" />");
  },
  success: function (Result) {
  $("#type2").find("img").remove();
  if (Result != "none" && Result != null) {
  $("#<%=Lb_Type2.ClientID %>").css("display", "block");
  $("#<%=Lb_Type2.ClientID %>").html(Result);
  }
  else {
  $("#<%=Lb_Type2.ClientID %>").css("display", "none");
  }
    
  },
  Error: function () {
  alert("系统错误");
  }
  });  })  如果不用beforeSend,也就是去掉以下这几行代码,是可以正常显示的 beforeSend: function () {
  $("#type2").html("<img style=\" margin-left:10px; margin-top:10px;\" id=\"loadimg\" src=\"../images/load.gif\" />");
  },
看了半天,也不清楚问题在哪