Array.prototype.slice.call (thisarg[, arg1[, arg2[, ...)]]
Member Introduction:
Array Arrays Object
prototype [Property]
is a property of an object in JavaScript that returns a prototype reference to an object that can be dynamically added to this method and attribute, such as Array,object, or a user-defined object, for details please see here
Slice [Function]
With the original array object, intercept the specified part to return a new array object, see here for details
Call [Function]call([thisObj[,arg1[, arg2[, [,.argN]]]]])
Call one of the object's methods and replace the current object with another object, see here for details .
After each of the above understanding, and then a good understanding of
Array.prototype.slice.call (thisobj,start,end) is the Thisobj object is cut into a new array by the Call method
As follows:
<! DOCTYPE html> <ptml xmlns= "http://www.w3.org/1999/xhtml" > <pead> <meta http-equiv= "Content-type" Content= "text/html; charset=gb2312 "/> <title>call</title> <script type=" Text/javascript "> function fn () {a = Array. Prototype.slice.call (arguments,2); alert (a); FN (1,2,3,5); </script> </pead> <body> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]