如何在JSP页面写表单的日期格式yyyy-mm-dd验证,要求用Javascript

如题

luonejun
浏览 2717回答 3
3回答

慕的地8582982

XTWGJLUYAWOIFWMVYIEOEZWFNYBSVMPLPZJGDMWNKMCSPFVYURBKTQGMJMIABFUXHXAPTJMVACSILSIYORORAQMPLHWSXNPFIRVLYPLBRIZOLBSBCYORHXMCGIEADHKGXZKUOKHQIXNQLVEIQNJSWMCKFPDSWACMJTIYPUWTKAJOYHKMETWTWGEGBMJOETCZWFHKTRIAJGQTPYCKAHRUCMCFHRAQSCFVTOLOKARYXEKNBOYEUSYNDYOFVFIDHYDLCCNUKQPPCWDMGGFZJTKIJFVVJIYRYOFBDHQDADSPWIERNAKKMPESMPLUEVMMARHAOOCTTMZMAAGMYYIOUIHRLBXGHSZZCIMDUHEUNIMSLIWJUCIICFLYBOPIISSIYIBVVJMVARLXFEUYNJFVLVMAPRMPZSWCGMKNUUYLCVMVCCLQQDTMGCWMZSFZADUCAQTCLPYHQNEOEHYNJZQSIJZILCFOKBXGRNXUDSPYRBDTPMPMAKTNXMISTDAJMCUDCDKKDBUUXMKIROXYGFPWTFTDBUIYRZOOHENYHHKDAGKWCMWSSSRVETCYIRHIBBZCRACMITPSUKMOFHCYHEUJZINJSOLUXNVYCYAQNQGJYIYGRTDTVEIEUENKOWMJZIQZWFGPRAQGPFISPHEMWMJTVRUWEUDMXMXHCYHCYNKMEBXNCZTDHDGCSIEIWHWSQHKNXSXAFPXUQNQMUKAXSQNVSCSBFHGCSOQIDNDFPIXNDADYPFJRXMWFVQZJZJNPRUXSCSORUISCEHEALUWGWRMOJHQNJZDZNXNQHXTOKTXPYFQSWGDFJZZEUITGWWPGJCLIFJXBYAXHKMDGNSIGOGPXHDOKTDYBLBCLVXADFCENRZVEIRNLODZK

串猪神

可以用jquery的valid插件,要不就只能自己使用JavaScript获取值后进行正则匹配就可以了。不过不建议自己正则匹配,因为现在网上插件那么多,网页开发呈现组件化的趋势,所以可以去找下插件。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java
JavaScript