我尝试覆盖一个方法和脚本是:functionwrapper(target){target.doABC=function(){alert('inwrapper');};returntarget;}functionModel(){wrapper(this);}Model.prototype.doABC=function(){alert('inModel');};vara=newModel();a.doABC();结果是“包装”。不知道为什么? 最佳答案 任何JavaScript对象都有自己的和继承的属性。Own是直接在实例上定义的,in