我有这个代码:
<html>
<script type="text/javascript">
function test() {
var Excel = new ActiveXObject("Excel.Application");
Excel.Workbook.Open("teste.xlsx");
}
</script>
<body>
<form name="form1">
<input type=button onClick="test();" value="Open File">
<br><br>
</form>
</body>
</html>
所以主要问题是我不断收到这个错误:
On line 7 , Unable to get value of property Open
URL file:///C:/users/admin/desktop/test.hta