怎样调用动态获取的自定义对象的方法
代码如下,动态获取的对象,目前读取其属性没问题的,但不知道怎样调用它的方法(在代码的倒数第4行)。 新建网页 1 function myobj(id, str) { this.id = id; this.innerHTML = str; this.init = init; this.show = show; this.init(); } function init() { document.write("" + this.innerHTML + ...