📅  最后修改于: 2022-03-11 14:54:25.806000             🧑  作者: Mango
function findProperty(obj, key) {
if (typeof obj === "object") {
if (key in obj) {
return true;
} else {
return false;
}
}
return false;
}
var rules = $(element).rules();
if (rules) {
var isGreater = findProperty(rules, 'greaterthandate');
}