$acceptancetext = $dialog.extend({}); $acceptancetext.prototype.show = function (msg) { var width = 650; var height = 400; // 获取当前语言ID var lang = _utility.currentLang; this.title = GetLanguageByKey("LHBIS_FIC_CLIENT_MODULES_SYSTEMOPTIONSCTRL_A037", "Terms and Conditions"); var dialog = this.createDialog(width, height); dialog.css("top", (document.documentElement.clientHeight - height) / 2); var src = "AcceptanceText.aspx?l=" + lang; var ele = $('
').appendTo(dialog); ele.load(sitePath + src); //TODO: 添加一些按钮 $('').click(this, function (e) { e.data.close(); } ).appendTo(dialog); $('').click(this, function (e) { reLoginAcceptanceText(); e.data.close(); } ).appendTo(dialog); dialog.appendTo($(document.body)); };