The answer is no, and you should never consider using Weex without sandbox.
You could however, 1. use boradcastChannel [1] for communication between pages 2. or use JS service [2] for vendor.js, which is very similar to global object. [1] https://weex.apache.org/zh/docs/api/broadcast-channel.html [2] https://weex.apache.org/zh/docs/api/js-service.html Best Regards, YorkShen 申远 黄天宁 <[email protected]> 于2020年2月25日周二 下午4:16写道: > Dear devs: > I'm sorry to disturb you about a question about SandBox in both > aos/ios. > In some case, developer need a global Object to save/share something > for different pages with JS callback,which can not save to Native > SharedPreference. > *1.In sandBox mode, is there a global Object for mounting?*(It looks > none, from the doc on website : > *In particular, the Vue variable are different in each pages, and even > the "global" config of Vue (Vue.config.xxx) only affect the single page on > Weex.* > > Android SDK can switch to *unuse sandbox mode*, but IOS SDK looks > none. > *2.IOS is not just like Android,which is without the selection > of isSandBox.* > Little understand in C++ sandBox. If you have free time,give me some > pointers,plz. > > Thanks! >
