<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
$("#file").change(function(e) {
alert("change事件触发");
});
});
</script>
</head>
<body>
<input type="file" id="file" />
</body>
</html>
Jquery对input file控件的onchange事件
最新推荐文章于 2020-04-14 17:30:16 发布