jquery源码合并数组的问题?
素颜
素颜 2017-03-15 09:04:03
0
2
1868

0000.png

var len = +second.lenght; //这个加号的作用是什么?,去掉+号也可啊


素颜
素颜

越努力越幸运!!!

reply all (2)
数据分析师

The problem of merging arrays with jquery source code?-PHP Chinese website Q&A-The problem with merging arrays with jquery source code?-PHP Chinese website Q&A

Look around and learn.

    迷茫

    +second.length中, 若second.length为数字型的字符串, 如"123", 将会被转换为123(number类型), 若为非数字型字符串,将会被转换为NAN.

    这是JS中的一种特殊写法!


      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!