自定义验证:
posted @ 2011-07-15 17:36 nikytwo 阅读(12) | 评论(0) |
编辑
使用方式:
a方式:
b方式:
步骤1.
$(
function
() {
easyloader.locale
=
'
zh_CN
'
;
//
中文后 1.2.3版本的日期自动格式为 yyyy-MM-dd。
using(
"
datebox
"
,
function
() {
$(
'
#dd2
'
).datebox({
required:
true
,
formatter:
function
(date){
var
y
=
date.getFullYear();
var
m
=
date.getMonth()
+
1
;
var
d
=
date.getDate();
return
y
+
"年
"
+
m
+
"月
"
+
d;
}
});
});
});