<form action="xxx" method="get"> //action的值是请求的url地址 <div> <label for="name">姓名</label> <input type="text"> </div> <div> <label for="jobNumber">工号</label> <input type="number"> </div> <div> <label for="nation">民族</label> <input type="text"> </div> <div> <label for="gender">性别</label> <input type="text"> </div> <div> <button type="button" data-dismiss="modal">Close</button> <button type="submit">提交</button> </div> </form>
form表单提交转为ajax方式提交
内容版权声明:除非注明,否则皆为本站原创文章。