下面就是关键了
var url = "https://itunes.apple.com/cn/app/idxxxxx";
setTimeout(function(){if(url==""){
document.getElementById("toast_error").style.display="inline";
setTimeout(function(){document.getElementById("toast_error").style.display="none";},1000);
return;}else{window.location.href= url}
},1000);
实际就是
window.location.href = "https://itunes.apple.com/cn/app/" + App的id;
这样就会弹出询问是否打开第三方的询问框
如果大神有更好的方法,请多多指教