PhoneGap + IOS XCode – Redirect 至 External Page
修改 Cordova.plist 如下 :
– 輸入 External Website Host Name 至 ExternalHosts 清單上
– OpenAllWhitelistURLsInWebView : YES
<script type="text/javascript" src="phonegap.js"></script> <script type="text/javascript"> function onBodyLoad() { document.addEventListener("deviceready", onDeviceReady, false); } function onDeviceReady() { window.location="… …"; } </script> |