双等号和三等号的区别:双等号只需要大小相等,三等号大小,类型都要相等 console.log(2 == 2, 2 == "2"); //true ture console.log(2 === 2, 2 === "2"); //true false