Commit eb9cf9e5 authored by hbcui1984's avatar hbcui1984

将webview模式选项卡改为预加载

parent 3096be14
...@@ -356,7 +356,15 @@ ...@@ -356,7 +356,15 @@
} }
} }
mui.init(); //初始化,并预加载webview模式的选项卡
mui.init({
preloadPages:[
{
url:'examples/tab-webview-main.html',
id:'examples/tab-webview-main.html'
}
]
});
var templates = {}; var templates = {};
var getTemplate = function(name, header, content, loading) { var getTemplate = function(name, header, content, loading) {
var template = templates[name]; var template = templates[name];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment