if(xxx) 把 xx 轉換成布爾 a == b 把 a, b 轉換成數字 空字符串轉布爾 false,其他字符串 true 對象轉布爾 true 轉換成數字 " " => 0 "0.00" =>0 對象 valueOf toString 數據轉換規則