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.