0
我试图使用jQuery Validation plugin来验证.docx文件上传。jQuery验证docx
$("#my_form").validate({
rules: {
upload1: { required: true, accept: "docx"},
upload2: { required: true, accept: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
}
);
但是,两条规则都不起作用。物业价值应该是多少接受?
你在使用HTML5文件API的浏览器测试? – Boldewyn
@Boldewyn,我用Chrome版本24.0.1312.57米测试了脚本。 – wannik