首页 > 开发 > JS > 正文

请问这个语句的意思,返回的是什么?

2017-09-05 12:26:26  来源:网友分享
    return element.nodeType === 9 ? null : element;

解决方案

搜索下 "三目运算符",授人以渔