zhouh
zhouh
  • 发布:2017-03-02 17:56
  • 更新:2017-03-02 22:31
  • 阅读:1168

WebviewObject不能预加载css文件 报错

分类:HTML5+

function plusReady(){
var w = plus.webview.create( "http://172.18.0.212:8080/SSOA/ssoa/ssoa/swipe.w.xhtml","swipe" );
w.setCssFile( "_www/css/mui.css" );//此处报错
w.show(); // 显示窗口
}
Uncaught TypeError: w.setCssFile is not a function at index.html:13

2017-03-02 17:56 负责人:无 分享
已邀请:
超人爷爷

超人爷爷

是webview没创建成功吧看样子。

该问题目前已经被锁定, 无法添加新回复