代码如下,运行填写后,点击重新填写并没有重置为value值
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>:)</title>
</head>
<body>
<from>
用户名:<input type="text" name="username" value="请输入用户名"maxlength="5"><br />
密码:<input type="password" name="pwd"><br />
性别:男<input type="radio" name="sex" checked="checked"> 女<input type="radio" name="sex"><br />
爱好:吃饭<input type="checkbox" name="hobby">
睡觉<input type="checkbox" name="hobby">
打豆豆<input type="checkbox" name="hobby"><br />
<input type="submit" value="免费注册"><br />
<input type="reset" value="重新填写">
</from>
</body>
</html>