The MUI request page cannot be opened ViewGroup error
Source: Internet
Author: User
I use the top tab in the home page, that is, pages a open page B page B opens page C error, using the <script src= "Js/webviewgroup.js" type= "Text/javascript" charset= "Utf-8 "></script> function but always error.
Not allowed to load local Resource:file:///android_asset/webkit/android-web
Solution:
Can only say that the official demo is not very rigorous, so the key parameters have no notes, this parameter in fact this page ID, where this ID is set, the previous page opened this page. Method One, change the ID of this page. Method Two, get the ID of the current page, assign a value to him on the line.
Mui.plusready (
function() {
varCurrentid=plus.webview.currentwebview (). ID;
varGroup =
NewWebviewgroup (CurrentID, {//Focus here items: [{id: "txl_nb_1.html", url: "txl_nb_1.html" , Extras: {}}, {
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.