Array.size() vs Array.length

后端 未结 10 838
一个人的身影
一个人的身影 2020-11-28 01:17

What is the difference between the two?

So I know that array.size() is a function while array.length is a property. Is there a usecase for

10条回答
  •  日久生厌
    2020-11-28 01:55

    The .size() method is deprecated as of jQuery 1.8. Use the .length property instead

    See: https://api.jquery.com/size/

提交回复
热议问题