common.js
来自「1.本程序为学习struts的朋友提供一个例子。 2.本程序部分实现AJA」· JavaScript 代码 · 共 29 行
JS
29 行
String.prototype.trim = function() {
return this.replace(/(^\s*)|(\s*$)/g, "");
}
function OMO() {
if (window.event.srcElement.tagName == "IMG")
event.srcElement.parentElement.className="T";
else
event.srcElement.className="T";
}
function OMOU() {
if (window.event.srcElement.tagName == "IMG")
event.srcElement.parentElement.className="T";
else
event.srcElement.className="P";
}
function OMO1() {
event.srcElement.className="LL";
}
function openWindow(URL, Name, Width, Height) {
window.open(URL, Name, "width=" + Width + ",height=" + Height +
",left=" + (window.screen.width - Width)/2 +
",top=" + (window.screen.height - Height)/2 +
",resizable=no,scrollbars=yes,toolbar=no,location=no," +
"directories=no,status=no,menubar=no");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?