2017-08-29 33 views

回答

0

您可以使用html输入的accept属性尝试以下内容。

<input type="file" name="pic" accept=".js"> 
+0

哇!我实际上需要它为“非纯html”解决方案,但它的作用像魅力。非常感谢! – ddddd

相关问题