gpt4 book ai didi

jquery - IE9 预期标识符、字符串或数字错误

转载 作者:行者123 更新时间:2023-12-01 06:49:23 25 4
gpt4 key购买 nike

我在 IE9 中遇到上述错误,但我不明白为什么会发生这种情况。我试图找到解决此问题的方法,但陷入了死胡同。有人可以指出我哪里出了问题吗?我一开始以为这可能是最后一个逗号,但事实并非如此。谢谢

jquery代码

$.validator.setDefaults ({

errorClass: 'form_error',
errorElement: 'div'
});

$("#BA_boxform").validate({
rules: {
BA_customer: {
required: true
},
customerdept: {
required: true
},
customeraddress: {
required: true
},
BA_service: {
required: true
},
BA_box: {
required: true
},
BA_destdate: {
required: true
},
BA_authorised: {
required: true
}
},
messages: {
BA_customer: {
required: '<br />* required: You must select a customer'
},
customerdept: {
required: "<br />* required: You must select a department"
},
customeraddress: {
required: "<br />* required: You must select a customer address"
},
BA_service: {
required: "<br />* required: You must select a service level"
},
BA_box: {
required: "<br />* required: You must enter a box number for intake"
},
BA_destdate: {
required: "<br />* required: You must enter a destruction date"
},
BA_authorised: {
required: "<br />* required"
} **<--- error is reported here**
},
});

最佳答案

问题出在尾随逗号:

        } **<--- error is reported here**
}, <--- problem is here

关于jquery - IE9 预期标识符、字符串或数字错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17425937/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com