![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
cccrush_
勿在浮沙筑高台
展开
-
提交form表单的两种方式
表单的onsubmit事件提交 onsubmit事件的函数一定要是 return 函数名() 为了让表单提交前判断账号密码是否正确,需要在onsubmit事件函数中进行判断。如果不符合要求,一定要返回false,这样onsubmit事件的return run()才有效果,完成阻止不合格表单的提交以及页面的跳转。 <!DOCTYPE html> <...原创 2018-11-13 18:48:37 · 4300 阅读 · 0 评论 -
response对象完成验证码的绘制
前端代码 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <form action="原创 2018-11-28 10:29:16 · 215 阅读 · 0 评论