(function ($) { //这里放入插件代码 $.extend({ loadbox: function () { return $.dialog({ title: false, content: "
", esc: false, lock: true, min: false, max: false }) }, okalert: function (title, content, fn) { return $.dialog({ title: title, content: content, lock: true, min: false, max: false, icon: "success.gif", minWidth: 200, button: [{ name: unescape("%u786E%u5B9A"), focus: true }], close: function () { if ($.isFunction(fn)) { fn.call(); } } }); }, alert: function (title, content, fn) { return $.dialog({ title: title, content: content, lock: true, min: false, max: false, icon: "alert.gif", minWidth: 200, button: [{ name: unescape("%u786E%u5B9A"), focus: true }], close: function () { if ($.isFunction(fn)) { fn.call(); } } }); }, Action: function (arr, overfn) { var self = this; if (arr.length > 0) { var isnext = true; var jsonitem = arr.shift(); var oldcomplete = "complete" in jsonitem ? jsonitem.complete : null; var oldsuccess = "success" in jsonitem ? jsonitem.success : null; jsonitem.success = function (data) { if ($.isFunction(oldsuccess)) { var cr = oldsuccess.call(self, data); isnext = (cr == undefined) || cr; } } jsonitem.complete = function (xml) { var isnext1 = true; if ($.isFunction(oldcomplete)) { var cr = oldcomplete.call(self, xml); isnext1 = (cr == undefined) || cr; } xml = null; if (isnext && isnext1) $.Action.call(self, arr, overfn); }; $.ajax(jsonitem); } else { if ($.isFunction(overfn)) { overfn(); } } }, getjson: function (data) { var datainfo; var reg_ = /