这里是jquery.validation.js中的源代码
// make sure required is at front
if (data.required) {
param = data.required;
delete data.required;
data = $.extend({
required: param
}, data);
}
// make sure remote is at back
if (data.remote) {
param = data.remote;
delete data.remote;
data = $.extend(data, {
remote: param
});
}
我对“前方”和“后方”感到困惑。如果我删除代码,有人可以举一个例子来解释意外的结果。