document.getElementById)?true:false 和 (document.all)?true:false 在JS中分别是什么意思这个是一个三元运算表达式。 a? b:c。 a计算的结果为真的时候,返回的结果是b的值,否则是c的值。(1)(document.getElementById)?true:false就是判断document里面有没有getElementB2023-02-22JavaScript110