浏览器方法及代码打包成APP的
<script src=" http://static.ydbimg.com/API/YdbOnline.js" type="text/javascript"></script>
<script type="text/javascript">
function OpenWithSafari(openurl){
var YDB = new YDBOBJ();
YDB.OpenWithSafari(openurl)};
</script>
在 <head>里面添加代码:
<script src=" http://static.ydbimg.com/API/YdbOnline.js" type="text/javascript"></script>
<script type="text/javascript">
function OpenWithSafari(openurl){
var YDB = new YDBOBJ();
YDB.OpenWithSafari(openurl)};
</script>
然后再将链接的形式改为:
<a href="javascript:OpenWithSafari('http://xxx.com/')" >链接名称</a>