cocos2d-js webview

cocos2d-js webview,第1张

概述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.getConten
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所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1079506.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存