站内搜索:
首页 >> 前端 >> 内容
字符串拼接的简单理解

时间:2017/11/23 14:57:40

字符串拼接的简单理解

1 + undefined //NaN
"1" + undefined //"1undefined"
1 + [1,2] //"11,2"
"1" + [1,2] //"11,2"

  • 上一篇:scrollWidth,clientWidth,offsetWidth在各浏览器中的兼容性和区别测试详解
  • 下一篇:html开发中Proxy和Reflect分析
  • 返回顶部