📌  相关文章
📜  rule: 'required', javascript - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:25.806000             🧑  作者: Mango

代码示例1
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');
}