last

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

Die last-Funktion gibt eine Zahl zurück, die der Kontextgröße aus dem Auswertungskontext des Ausdrucks entspricht.

Syntax

last()

Rückgabewert

Ein Ganzzahlwert, der der Kontextgröße aus dem Auswertungskontext des Ausdrucks entspricht.

Beschreibung

  • Diese Funktion wird häufig zusammen mit der Funktion position() verwendet, um festzustellen, ob ein bestimmter Knoten der letzte in einer Knotenmenge ist.

Spezifikationen

Gecko-Unterstützung

Unterstützt.