varobj=function(){this.hello=function(){alert("hello");}}varaPage=function(){vartest=document.getElementById("test");varobj=newobj();test.innerHTML="hello";}aPage();//这样的代码,在点击hello时,会找不到obj对象。//请问有什么方法可以将obj对象传给已经被innerHTML的对象?
手掌心
千万里不及你
随时随地看视频慕课网APP
相关分类