使用微信打开URL(root)
<pre><code class="language-js">function 使用微信打开URL(url) {
app.startActivity({
packageName : "com.tencent.mm",
className : "com.tencent.mm.plugin.webview.ui.tools.WebViewUI",
extras : {
rawUrl : url
},
root : true
})
}</code></pre>