(1).先转换为数字型在比较(2).NaN与与任何数比较都是NaN(3).比较结果显示true、false var a=true;var b="10";var c="hello";console.log(a>b);//先转换为数字型在比较console.log(a>c);//false NaN与与任何数比较都是NaNconsole.log(Number(c)); //NaN