加上name属性,用户名为啥还是不提示之前的输入数据呢

来源:3-8 编程练习

小鲜花

2019-05-18 11:40:57

<html>
<head>
    <meta charset="utf-8">
	<title>表单新属性autofocus</title>
</head>
<body>
	<!-- 此处写代码 -->
	<form>
	用户名:<input type="text" name="text" autofocus="autofocus"><br/><br/>
	请输入密码:<input type="text" name="pwd" autocomplete="off"><br/><br/>
	<input type="button" name="botton" value="注册">
    </form>
</body></html>


写回答

1回答

好帮手慕码

2019-05-18

同学你好!

在注册的时候需要写类型为提交哦,这样才可以记录之前已输入过的内容

http://img.mukewang.com/climg/5cdf99f80001240c09300239.jpg

http://img.mukewang.com/climg/5cdf9a1a0001e86b03140104.jpg

祝学习愉快 望采纳~

0

0 学习 · 40143 问题

查看课程