JQuery:加载数据

来源:互联网 发布:文鼎cs大宋 mac 编辑:程序博客网 时间:2024/05/21 07:54

var focu = jQuery.noConflict();

focu.ajax({
   type : "POST",
   success : function(result) {
    focu("#groupLevel").empty();
    focu("#groupLevel")
      .append("<option value='-1'>请选择群等级</option>");
    if (result.totalCount != 0) {
     focu.each(result.data, function(index, item) {
        focu("#groupLevel").append("<option value='"
          + item.groupLevelId + "_"
          + item.capacity + "." + item.ccount
          + "'>" + item.groupLevelName
          + "</option>")
       })
    }
   },
   error : function(XMLHttpRequest, textStatus, errorThrown) {
    alert("系统错误...5");
   },
   timeout : 30000,
   data : tmp,
   url : "isomery/corp/groupRoleLevelRel/exec-getCreateGroupLevelByCateId",
   dataType : "json"
  });

原创粉丝点击