相关知识: https://blog.csdn.net/mokexfdgh/article/category/8092196
XML
表单提交方式
提交方式:
<form id="form1">
<input type="text" name="username" />
<!-- 第一种submit -->
<input type="submit" />
<!-- 第二种button -->
<input type="button" value="提交" onclick="form1();" />
<script type="text/javascript">
function form1(){
var form1 = document.getElementById("form1");
form1.action = "hello.html";
form1.submit();
}
</script>
<!-- 第三种超链接 -->
<a href="hello.html?username=123456">提交</a>
</form>
输入项常用的事件属性:
onclick:鼠标点击事件
onchange:改变内容(一般在select使用)
onfocus:得到焦点
onblur:失去焦点
<input type="<