object.js
来自「在Web的脚本上专门处理一些通用的 JavaScript对象」· JavaScript 代码 · 共 41 行
JS
41 行
// Description: js.lang.Object
// Author: HuangYiGang
// Version: 2005.11.04.01
_import("js.lang.Class");
function js.lang.Object() {}
/*
this.window = window;
var _classPath = null;
this.getClassPath = function() {
if (_classPath == null) _classPath = $js_classpath + this.className.replace(/\./gi, "\/");
return _classPath;
};
var _codeBase = null;
this.getCodeBase = function() {
if (_codeBase == null) {
_classPath = this.getClassPath();
var idx = _classPath.lastIndexOf("\/");
_codeBase = _classPath.substring(0, idx);
}
return _codeBase;
};
this._toString = function() {
return("[jclass/object]:" + this.className);
};
this.getClass = function() {
return Class.forName(this.className);
};
this.instanceOf = function(c) {
return Class.forName("js.lang.Class").instanceOf(this, c);
};
this.getUID = function() {
if (typeof(this.uniqueID) == "undefined") {
this.uniqueID = "obj_" + (new Date()).getTime() + Math.round(Math.random() * 1000);
eval("window." + this.uniqueID + " = this;");
}
return this.uniqueID;
};
*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?