<script>
var pimitiveString1 = "This is a primitive string";
var pimitiveString2 = String("This is a primitive string");
alert(typeof primitiveString1);
alert(typeof primitiveString2);
</script>
问题:
它显示“未定义”,为什么它不是“字符串”?pimitiveString1 和 pimitiveString2 是字符串类型,对吧?