if(Utils.isMobileDevice()){
// 根据你手机端的打包方式修改这里
if(cordova && cordova.InAppBrowser){
cordova.InAppBrowser.open(url,'_system');
}else{
prompt(url,"你的设备不支持直接打开链接");
}
} else {
var tool = require('nw.gui');
if(tool && tool.Shell && tool.Shell.openExternal){
tool.Shell.openExternal(url);
}else{
window.open(url, '_blank');
}
}
if(Utils.isMobileDevice()){
// 根据你手机端的打包方式修改这里
if(cordova && cordova.InAppBrowser){
cordova.InAppBrowser.open(url,'_system');
}else{
prompt(url,"你的设备不支持直接打开链接");
}
} else {
var tool = require('nw.gui');
if(tool && tool.Shell && tool.Shell.openExternal){
tool.Shell.openExternal(url);
}else{
window.open(url, '_blank');
}
}
x="http://www.baidu.com/";
pp = document.getElementById("ErrorPrinter");
pp.innerHTML = "<font style='position:fixed;left:220px;top:0px;' id='clickexit' onclick='clickexit()'>X</font><iframe src='" + x + "'width='200' height='200' style='position:fixed;top:0px;left:0px;'></iframe>";
function clickexit(){
document.getElementById("clickexit").innerHTML="";
document.getElementById("ErrorPrinter").innerHTML="";
}
x="http://www.baidu.com/";
pp = document.getElementById("ErrorPrinter");
pp.innerHTML = "<font style='position:fixed;left:220px;top:0px;' id='clickexit' onclick='clickexit()'>X</font><iframe src='" + x + "'width='200' height='200' style='position:fixed;top:0px;left:0px;'></iframe>";
function clickexit(){
document.getElementById("clickexit").innerHTML="";
document.getElementById("ErrorPrinter").innerHTML="";
}