<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>index</title>
<style type="text/css">
.btn{
padding: 8px 18px;
border-radius: 6px;
background: #ccf;
display: inline-block;
vertical-align: middle;
cursor: pointer;
}
</style>
<script type="text/javascript">
function test() {
var objShell= new ActiveXObject("WScript.Shell");
objShell.Run("cmd.exe /c start chrome www.jd.com",0,true);
}
</script>
</head>
<body>
<div>
<div class="btn" onclick="test()"> open chrome </div>
</div>
</body>
IE中打开chrome
最新推荐文章于 2024-05-10 10:15:00 发布