国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

android - weex navigator跳轉其它js

瀏覽:136日期:2024-08-17 10:32:11

問題描述

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:

這樣試試看android - weex navigator跳轉其它js

回答2:

Loding 前可否有個加載菊花,加載完在新開頁面

相關文章:
主站蜘蛛池模板: 海原县| 德令哈市| 汤原县| 清徐县| 红安县| 比如县| 华宁县| 简阳市| 枣强县| 吴川市| 中超| 贵溪市| 长垣县| 互助| 红河县| 会东县| 阿克苏市| 乌兰县| 成安县| 上犹县| 望奎县| 东至县| 怀安县| 治县。| 泰州市| 永平县| 奉节县| 舞钢市| 昆明市| 卢湾区| 磐石市| 丁青县| 黔西县| 罗江县| 佛冈县| 乐清市| 尼木县| 新竹县| 迭部县| 醴陵市| 武鸣县|