Object.prototype.Clone = function()
?{
??? var objClone;
??? if ( this.constructor == Object ) objClone = new this.constructor();
??? else objClone = new this.constructor(this.valueOf());
??? for ( var key in this )
??? {
??????? if ( objClone[key] != this[key] )
??????? {
??????????? if ( typeof(this[key]) == 'object' )
??????????? {
??????????????? objClone[key] = this[key].Clone();
??????????? }
??????????? else
??????????? {
??????????????? objClone[key] = this[key];
??????????? }
??????? }
??? }
??? objClone.toString = this.toString;
??? objClone.valueOf = this.valueOf;
??? return objClone;
?}???
详细解决方案
JScript中没clone方法,自己写个玩clone玩玩
热度:265 发布时间:2012-11-19 10:18:51.0
相关解决方案
- j2se-clone
- Microsoft JScript 运行时异常:缺少对象?
- 百思不得其解:Microsoft JScript 运行时异常: 缺少对象
- js调用cs函数时报错,Microsoft JScript 运行时异常: 缺少对象
- microsoft jscript 缺少对象,该如何处理
- 内容页中使用上拉框,为什么onselectedindexchanged事件会报错Microsoft JScript 运行时异常: 找不到成员
- ,小弟我用Linkbutton做退出主页面的时候报错Microsoft JScript 运行时异常: “_doPostBack”未定义
- Microsoft JScript 运行时异常
- JScript InselliSense更新失败的有关问题
- Microsoft JScript runtime error: Object expected,该怎么解决
- Microsoft JScript 运行时异常:Treeview_1未定义
- Microsoft JScript 运行时异常: 'document.getElementById(.)' 为空或不是对象
- UpdatePanel装用户控件注册了脚本了但是在隐藏文件提示:"Microsoft JScript 运行时异常: 'null' 为空或不是对象"
- 服务控件 当按下回车时触发的有关问题 提示:"Microsoft JScript 运行时异常: 'document.all[.]' 为空或不是对象"
- 想深入 .net 的, 但是 想 深入 jscript .net 的, 要到那里找大本营?该如何解决
- JScript 运行时异常: getElementById(.)' 为空或不是对象
- 为什么这段jquery代码会提示异常Microsoft JScript 运行时异常: 对象不支持此属性或方法
- Microsoft JScript 编译异常 (0x800A03EC)怎么解决
- JScript 得到IP的函数,有错吗?解决办法
- 异常类型:Microsoft JScript 编译异常 (0x800A03EC) 缺少 ';'
- PHP 对象克隆 clone 关键字与 _clone() 步骤
- Microsoft JScript 运行时异常: 对象不支持“setCurrentMouseTool”属性或方法
- Microsoft JScript 运行时异常: "Ajax" 未定义
- oXL = new ActiveXObject("Excel.Application");Microsoft JScript 运行时异常: Automation
- Microsoft JScript 运行时异常: 缺少对象一般是哪个地方出错了呢
- jquery clone 与 clone(true) 的差别
- js克隆对象、数组的惯用方法【clone】
- 浅谈Javascript 中几种克隆(clone)形式
- JSCRIPT.DLL中的DLLREGISTERSERVER失败,回来代码是:0X80004005
- jquery clone(true)跟clone()的区别