简体   繁体   中英

Cordova inAppBrowser - executeScript causes blank page for Android

Running the code below successfully loads the page but causes it to go blank when running executeScript :

var ref = window.open('http://www.example.com', '_blank');

ref.addEventListener('loadstop', function(){
  ref.executeScript({ code: 'window.myValue' }, function(val){
    console.log(val);
  }
});

This works fine for iOS, but not for Android.

解决了Cordova项目(插件等)的完整更新。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM