JQuery toArray of notes
- 2020-03-30 03:14:56
- OfStack
< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201406/2014060911345814.png ">
< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201406/2014060911345815.png ">
As you can see from the source code, these common methods are directly from the native
It's borrowed from javascript. Why do you say that?
In line 225, at runtime,this points to the jQuery object. Using the call statement, slice is used to cut out an array.
Slice (start,end) is used to slice an array.
Start represents the starting position of the sharded array.
Omitting end means going from start to the end