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... 详细内容

Copyright © 网站前端,web前端,前端脚本,前端优化|时代前端 and WPYOU All Rights Reserved.

Powered by Wordpress and Theme by WPYOU

无觅相关文章插件,快速提升流量