当IE不支持的时候,如何在本页面自动跳转到火狐浏览器?
请问有没有大佬知道的
可以在后端实现,用下面代码测试一下:
String osName = System.getProperty(
"os.name"
,
""
);
if
(osName.startsWith(
"Windows"
)) {
Runtime.getRuntime().exec(
new
String [] {
"cmd.exe"
,
"/C"
,
"start firefox.exe"
,url});
}