📄 help.js
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -