What techniques can be used to define a class in JavaScript, and what are their trade-offs?
Welche Techniken können verwendet werden, um eine Klasse in JavaScript zu definieren, und was sind ihre Kompromisse?
Custom elements: A set of JavaScript APIs that allow you to define custom elements and their behaviour, which can then be used as desired in your user interface.
Benutzerdefinierte Elemente: Ein Satz von JavaScript APIs, die es ermöglichen, benutzerdefinierte Elemente sowie deren Verhalten zu definieren, die dann anschließend beliebig auf Ihrer Benutzeroberfläche verwendet werden können.
This example defines a text-only medium notification using the same text string that we used in the wide notification. JavaScript Copy
In diesem Beispiel wird eine nur aus Text bestehende mittelgroße Benachrichtigung definiert, für die der gleiche Text verwendet wird, der schon bei der breiten Benachrichtigung zum Einsatz kam.
They used green plants for edging to define the flower beds in the yard.
Defines if the Anti-Malware service is to be used for scanning.
Definiert, ob der Anti-Malware Dienst zum Scannen verwendet werden soll.
There are two ways to define the format which will be used.
Es gibt zwei Wege um das Format zu definieren das verwendet wird.
The following block of code can be used to define the array.
Der folgende Code kann man benutzen, den Array zu definieren.
This element is used to define the barcode's position and size.
Mit diesem Eintrag wird die Position und Größe des Barcodes bestimmt.
Defines the block that is displayed when the style is used.
Legt den Block fest, der bei Verwendung des Stils angezeigt wird.
The plant is used to define entire plants, buildings or areas.
Mit einer Anlage werden ganze Werke, Bauwerke oder Bereiche festgelegt.
This attribute is used to define a recommended cell height.
Dieses Attribut wird verwendet um die Höhe einer Zelle festzulegen.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.