js 中的=,==,===的区别 一个等号是赋值操作,==先转换类型再比较,===先判断类型,如果不是同一类型直接为false。 alert(1 == “1”); // true alert(1 === “1”); // false