<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
最新推荐文章于 2023-04-11 15:32:07 发布