form表单reset表格并执行搜索

其中reset() 不需要定义

search():是你执行的搜索的函数

<html>

<head>
<title>sf</title>
</head>

<body>
<form action="a.php" method="post">
<input type="test" />
<button type="button" onclick="reset();search();">tijiao</button>
</form>
</body>

</html>

原文地址:https://www.cnblogs.com/cbugs/p/6075174.html