Usage of SLICE functions

xiaoxiao2021-03-05  25

The usage of the SLICE function: SLICE (A, B) intercepting the elements between arrays A to B constitute a new array intercepted element A, A 1, ..., B-1

The method of deleting an element A to element B is: Element of Element A before the merge element A. Elements from element B; Function Array.Prototype.Remove (A, B) {Return this.slice (0, a) .concat (this . SLICE ((b || a) 1);

转载请注明原文地址:https://www.9cbs.com/read-36105.html

New Post(0)