摘要: form标签提交时,会触发onsubmit事件。onsubmit会在提交之前发生,所以验证可以写在onsubmit中。 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <script typ 阅读全文
posted @ 2016-03-11 17:25 长不高 阅读(1173) 评论(0) 推荐(0) 编辑