help.js

来自「LiteBlaster 是一款基于 .NET Framework 原创的 ASP」· JavaScript 代码 · 共 32 行

JS
32
字号
// for help

var tipsLoaded = new Array();
var tipsLoading = new Array();

function loadTips(section_id){
	if(tipsLoaded[section_id] || tipsLoading[section_id]){
		return;
	}
	tipsLoading[section_id] = true;
	xGetElementById('HelpSectionBody' + section_id).innerHTML = '正在加载,请稍候……';
	var params = 'type=0&tips=' + section_id;
	var loader = new ajax.loader('Help.aspx', 'POST', loadTips_onload, loadTips_onerror, params);
	loader.section_id = section_id;
}
function loadTips_onload(){
	var xmlDoc = this.req.responseXML;
	var errInfo = getXmlElementText(xmlDoc, 'Error');
	var content;
	if(errInfo){
		content = errInfo;
	}else{
		content = getXmlElementText(xmlDoc, 'Return');
		tipsLoaded[this.section_id] = true;
	}
	xGetElementById('HelpSectionBody' + this.section_id).innerHTML = content;
	tipsLoading[this.section_id] = false;
}
function loadTips_onerror(){
	xGetElementById('HelpSectionBody' + this.section_id).innerHTML = '加载过程中出错。';
	tipsLoading[this.section_id] = false;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?