//在用户端的代码调用的Lib中定义
function ajaxRequest(callback) {
var opt = $("#fat-selector optgroup");
if (opt.length >= 1) {
$("#fat-selector").empty();
}
for (var i in appArr) {
ajaxFatEnvData(appArr[i]);
}
callback();//
}
//ajax函数中的参数中定义了一个回调函数,是用户端代码
ajaxRequest(function () {
$('#fat-selector').fSelect();
$(".fs-wrap").css("display", "none");
})