📄 common.js
字号:
/**
* Open the url in target window.
*
*/
function jumpToLink(url, target) {
if (url.indexOf("?") == -1)
url = url + "?tempID=" + Math.ceil(Math.random()*100000000000);
else
url = url + "&tempID=" + Math.ceil(Math.random()*100000000000);
if (target == null || target == "")
location.href = url;
else
window.open(url, target)
}
/**
* Open the dialog for url in specified width / height.
*/
function showDialog(url, dlgWidth, dlgHeight) {
var baseURL = "../common/modalDialog.htm";
var features = "dialogHeight: " + dlgHeight
+ "px; dialogWidth: " + dlgWidth + "px; help: No; center: Yes; resizable: No; status: No;";
return window.showModalDialog(baseURL, url, features);
}
function showSmartDialog(url, dlgWidth, dlgHeight) {
if (showDialog(url, dlgWidth, dlgHeight) == "reload")
window.location.reload();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -