ios - There is a reload method in the weex WXSDKInstance class. The loading interface occasionally fails.
迷茫
迷茫 2017-05-17 10:04:36
0
1
1030

In the weex sdk, there is a WXSDKInstance class, which has a reload method to configure whether to load data from the local cache or re-request the data from the url. At the beginning, I set it to false. The problem was: after the weex code was modified, the iOS side still displayed the previous code, which was the loaded cache data. Then I set reload to yes. The problem is: after the interface is loaded, it will flash and disappear, or sometimes it will not appear at all; this does not happen every time.
I personally feel that it is not a problem with the network speed. I can’t load it using the 4G network.
Now I want to ask how to solve this problem?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (1)
刘奇

I always thoughtreload只能用来链接debug模式时使用。。。
不用它的话,就是销毁当前weexInstance, and then go through the creation process again

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!