贫民窟里的程序高手

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
<!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

posted on 2015-01-24 11:04  贫民窟里的程序高手  阅读(4449)  评论(1编辑  收藏  举报