form

来源:互联网 发布:ext js 学多久 编辑:程序博客网 时间:2024/05/16 16:03
<form action=""></form> action:将表单数据提交到服务器。 method="get/post" //提交方式 ajax:向服务器请求(异步刷新)。方法:postget get的提交方式是将数据放到URL中,缺点:(不安全,URL可以直接看到,,( URL长度有限 post提交方式,安全,可以提交大数据。 <input>  同一组类型<input>中的name属性要一样  type类型:  value值提交给服务器。  1.text:文本;2.password:密码;3.checkbox:复选框;4:radio:单选按钮;【5file:选择文件 (multiple=“”:file中多选属性)】  6.submit:提交; 7.reset:重置; 下拉列表  <select name="">   <option value="">下拉列表</option>  </select> <input>input属性设置 value;disabled;readonly ///     checked:已选中。   <option>中设置selected="true" 已选中。
原创粉丝点击