javascript instanceof,typeof的区别
2010-03-26
区分string 与 String的区别
为什么结果会是false呢?
<script type=”text/javascript”>
var aColors = ["red", "green", "blue"];
alert(typeof aColors[0]); //output “string”
alert(aColors[0] instanceof String); //output “false”;
</script>
你要区分string 与 Stri... 详细内容
