android - weex navigator跳转其它js
问题描述
weex打开本地js后,想跳转到本地的另一js文件,但使用navigator后跳转空页面
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 前可否有个加载菊花,加载完在新开页面
相关文章:
1. 编辑成功不显示弹窗2. 哭辽 求大佬解答 控制器的join方法怎么转模型方法3. Navicat for mysql 中以json格式储存的数据存在大量反斜杠,如何去除?4. mysql - 数据库表中,两个表互为外键参考如何解决5. mysql储存json错误6. mysql - 怎么生成这个sql表?7. mysql - 表名称前缀到底有啥用?8. sql语句 - 如何在mysql中批量添加用户?9. 在mybatis使用mysql的ON DUPLICATE KEY UPDATE语法实现存在即更新应该使用哪个标签?10. 怎么php怎么通过数组显示sql查询结果呢,查询结果有多条,如图。
