android - weex navigator跳转其它js

 kk1049057 发布于 2022-10-27 15:57

weex打开本地js后,想跳转到本地的另一js文件,但使用navigator后跳转空页面

android开始加载js方法
public class MainActivity extends AppCompatActivity implements IWXRenderListener {

WXSDKInstance mWXSDKInstance;
RelativeLayout viewGroup;

@Override
protected 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?1.2.1",this), null, null, -1, -1, WXRenderStrategy.APPEND_ASYNC);
    //mWXSDKInstance.render(WXFileUtils.loadAsset("foo.js?1.2.1",this));
}
。。。。。。

}

wee中的vue代码

引用
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'

}

2 个回答
  • Loding 前可否有个加载菊花,加载完在新开页面

    2022-10-28 13:11 回答
  • 这样试试看

    2022-10-28 13:12 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有