把 loadurl的方法写在web组件的生命周期里面Web({ src:"", controller: this.controller }) .onControllerAttached(()=>{ this.controller.loadUrl("xxxxxxxxx",header) }) }
把 loadurl的方法写在web组件的生命周期里面