关于前端
qq_34987437
这个作者很懒,什么都没留下…
展开
-
数据验证提交
有两种方式 1 form表单提交中,使用onsubmit=”returncheck()”,然后在js中的check中进行判断处理,不成功则 return false,提交按钮属性为type=“submit” 2 ajax方式提交,在提交前判定,ajax提交代码如下: $.ajax({ type: "post", async:false,//让ajax同步执行,确保flag原创 2017-12-25 21:08:42 · 187 阅读 · 0 评论 -
jquery点击清空
想实现input框点选择日期后,再次点击清空日期选项html function change(){ var is_null=document.getElementById('check_time').value; if(is_null !=""){ document.getElementById('check_time').value=""; } }原创 2017-12-25 21:36:11 · 629 阅读 · 0 评论