87,907
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="lib/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$(":button").click(function() {
$(":file").click();
$(":text").val($(":file").val());
});
});
</script>
</head>
<body>
<input type="button" value="选择文件" />
<input type="file" style="display: none;" />
<input type="text" />
</body>
</html>
<INPUT onclick="document.execCommand('saveas','true','11.htm')" type=button value="另存为"/>