ArrayPrototype.splice(Object, VsaEngine, Double, Double, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds and removes elements from an array at the specified position in the array. You can add elements, remove elements, or both.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
static Microsoft::JScript::ArrayObject ^ splice(System::Object ^ thisob, Microsoft::JScript::Vsa::VsaEngine ^ engine, double start, double deleteCnt, ... cli::array <System::Object ^> ^ args);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasEngine | Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs, Microsoft.JScript.JSBuiltin.Array_splice)]
public static Microsoft.JScript.ArrayObject splice (object thisob, Microsoft.JScript.Vsa.VsaEngine engine, double start, double deleteCnt, params object[] args);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasEngine | Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs, Microsoft.JScript.JSBuiltin.Array_splice)>]
static member splice : obj * Microsoft.JScript.Vsa.VsaEngine * double * double * obj[] -> Microsoft.JScript.ArrayObject
Public Shared Function splice (thisob As Object, engine As VsaEngine, start As Double, deleteCnt As Double, ParamArray args As Object()) As ArrayObject
Parameters
- thisob
- Object
The object that this method is acting upon.
- engine
- VsaEngine
A reference to the scripting engine.
- start
- Double
The position in the array to add and remove elements.
- deleteCnt
- Double
The number of elements to remove, if any.
- args
- Object[]
The elements to add, if any.
Returns
A new array that contains the elements removed from thisob
, if any have been removed.
- Attributes
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για