//this.Info_bg是一个背景底板;
this.webView = new ccui.WebView(); this.webView.setAnchorPoint(0.5,0.5); this.webView.setPosition(this.Info_bg.x, this.Info_bg.y); this.webView.setContentSize(cc.size(this.Info_bg.getBoundingBox().width - 20 , this.Info_bg.getBoundingBox().height - 20)); this.webView.loadURL("http://139.162.110.207/demo/index.html"); this.webView.setScalesPageToFit(true);
this.addChild(this.webView);