seem windows platform restrict the cross domain access
a simple code
i using phonegap build cli 6.0.0
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>xxx</title>
<script src="cordova.js" type="text/javascript"></script>
<script type="text/javascript">
document.addeventlistener("deviceready", initialize, false);
function initialize()
{
window.location = "http://www.google.com";
}
</script>
</head>
<body>
</body>
</html>
in android , ios,it go google webpage immediately
but in windows,when execute it,it have no response
More discussions in PhoneGap Build
adobe
Comments
Post a Comment