【发布时间】:2019-08-08 20:20:54
【问题描述】:
有人知道原因吗
$('#id_thefile').attr('accept', '*.xlsx');
<html>
<head>
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.slim.min.js">
</script>
</head>
<body>
<!-- the input I want to change with jquery //-->
<input id="id_thefile" type="file" />
不工作?
干杯,
卡洛斯。
【问题讨论】:
-
不需要
*只需使用'.xlsx'