(轉)AppCan中調用系統瀏覽器打開網頁


<!DOCTYPE html>
<html>
<head>
<style>body{ background:#fff; font-size:30px;}</style>
<meta charset="utf-8">
<script>
function openUrl(url){
    if(uexWidgetOne.getPlatform()=='0'){
        //IOS設備
        uexWidget.loadApp(url,'','');
    }else{
        //android設備
        uexWidget.loadApp('android.intent.action.VIEW','text/html',url);
    }  
}
</script>
</head>
<body>
<input type="button" value="打開網頁" onclick="openUrl('http://ciniao.me/appcan/down')"/><br/>
</body>
</html>

本文轉載自:http://ciniao.me/appcan/?id=39


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM