📜  爱沙尼亚 - 任何代码示例

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

代码示例1
function selectorMatches(el, selector) {
    var p = Element.prototype;
    var f = p.matches || p.webkitMatchesSelector || p.mozMatchesSelector || p.msMatchesSelector || function(s) {
        return [].indexOf.call(document.querySelectorAll(s), this) !== -1;
    };
    return f.call(el, selector);
}