android - weex navigator跳轉(zhuǎn)其它js
問題描述
weex打開本地js后,想跳轉(zhuǎn)到本地的另一js文件,但使用navigator后跳轉(zhuǎn)空頁面
android開始加載js方法public class MainActivity extends AppCompatActivity implements IWXRenderListener {
WXSDKInstance mWXSDKInstance;RelativeLayout viewGroup;@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mWXSDKInstance = new WXSDKInstance(this); mWXSDKInstance.registerRenderListener(this); String aa [] = this.getAssets().getLocales(); mWXSDKInstance.render('test', WXFileUtils.loadAsset('foo.js',this), null, null, -1, -1, WXRenderStrategy.APPEND_ASYNC); //mWXSDKInstance.render(WXFileUtils.loadAsset('foo.js',this));}。。。。。。
}
wee中的vue代碼<script>
var navigator = weex.requireModule(’navigator’)var modal = weex.requireModule(’modal’)
export default {
data: { logoUrl: ’https://alibaba.github.io/weex/img/weex_logo_blue@3x.png’, target: ’World’},created: function(){ },methods: { update: function (e) { this.target = ’Weex’ }, jump: function (e){ navigator.open({ url: 'file://assets/sec.js', animated: 'true' }, function(){}, function(){}) }}
}</script>
引用dependencies {
compile fileTree(dir: ’libs’, include: [’*.jar’])androidTestCompile(’com.android.support.test.espresso:espresso-core:2.2.2’, { exclude group: ’com.android.support’, module: ’support-annotations’})compile ’com.android.support:appcompat-v7:24.2.1’testCompile ’junit:junit:4.12’compile ’com.android.support:recyclerview-v7:24.2.1’compile ’com.alibaba:fastjson:1.1.45’compile ’com.taobao.android:weex_sdk:0.9.5@aar’compile ’com.github.bumptech.glide:glide:3.7.0’
}
問題解答
回答1:這樣試試看
Loding 前可否有個(gè)加載菊花,加載完在新開頁面
相關(guān)文章:
1. debian - docker依賴的aufs-tools源碼哪里可以找到啊?2. dockerfile - 我用docker build的時(shí)候出現(xiàn)下邊問題 麻煩幫我看一下3. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問題。4. docker gitlab 如何git clone?5. docker 下面創(chuàng)建的IMAGE 他們的 ID 一樣?這個(gè)是怎么回事????6. macos - mac下docker如何設(shè)置代理7. javascript - 連續(xù)點(diǎn)擊觸發(fā)mouseleave事件8. docker網(wǎng)絡(luò)端口映射,沒有方便點(diǎn)的操作方法么?9. docker start -a dockername 老是卡住,什么情況?10. docker api 開發(fā)的端口怎么獲???

網(wǎng)公網(wǎng)安備