关于判断后该数据类型是否发生了转变

a = "5";
if(a > 3){}

判断之后a仍然是string类型,而非number类型,判断时只是临时转换一下。其他语言也是如此。

原文地址:https://www.cnblogs.com/sjxbg/p/5729451.html