为什么结果会是false呢?

1 <script type="text/javascript">
2 var aColors = ["red", "green", "blue"];
3 alert(typeof aColors[0]); //output "string"
4   alert(aColors[0] instanceof String); //output "false";
5   </script>

 

 

 

 

 

相关文章:

  • 2021-08-11
  • 2022-01-06
  • 2021-08-27
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-10-18
猜你喜欢
  • 2021-06-09
  • 2021-05-17
  • 2021-08-05
  • 2021-06-22
  • 2022-12-23
相关资源
相似解决方案