JQuery:加载数据

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"
  });

阅读更多

没有更多推荐了,返回首页