var webVIEw = new ccui.WebVIEw();webVIEw.setposition(cc.p(this._actVIEw.getContentSize().wIDth/2,this._actVIEw.getContentSize().height/2 -20));webVIEw.setContentSize(cc.size(this._actVIEw.getContentSize().wIDth -150,this._actVIEw.getContentSize().height- 150));cc.log("this._actVIEw.getContentSize().wIDth/2" + this._actVIEw.getContentSize().wIDth/2);cc.log("this._actVIEw.getContentSize().height/2" + this._actVIEw.getContentSize().height/2);webVIEw.loadURL("http://www.baIDu.cn/");webVIEw.setScalesPagetoFit(true);this._actVIEw.addChild(webVIEw);总结
以上是内存溢出为你收集整理的cocos2d-js webview全部内容,希望文章能够帮你解决cocos2d-js webview所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)