a ={ x:function(){console.log(1)}}function B(){ this.y = function(){}}想var b = new B();b = { x:..., y:....}請問如何實現(xiàn)
構(gòu)造函數(shù) 附加指定對象中的方法,
ibeautiful
2019-03-23 22:19:35