The following code assigns the user-defined function to the object's toString method
Der folgende Code weist die benutzerdefinierte Funktion der toString-Methode des Objekts zu
When the toString method is called, the following steps are taken: 1.
Wenn die toString-Methode aufgerufen wird, werden folgende Schritte durchgeführt: 1.
For user-defined Function objects, the toString method returns a string containing the source text segment which was used to define the function.
Für benutzerdefinierte Function Objekte gibt die toString Methode einen String zurück, welcher den Quelltext, der die Funktion definiert, enthält.
JavaScript calls the toString method automatically when an array is to be represented as a text value or when an array is referred to in a string concatenation.
JavaScript ruft die toString Methode automatisch auf wenn ein Array als Text repräsentiert wird oder wenn ein Array in einer Stringkonkatenation verwendet wird.
Every object has a toString method that is automatically called when it is to be represented as a text value or when an object is referred to in a string concatenation.
Jedes Objekt besitzt eine toString-Methode, die automatisch aufgerufen wird, wenn es als Textwert dargestellt werden soll oder wenn ein Objekt in einer Zeichenfolgenverkettung darauf verweist.
They each call the toString method for the object, but because no such method is defined in the immediate object, it goes through the chain of prototype inheritance for a definition of toString.
Beide rufen jeweils die toString-Methode für das Objekt auf, aber da im unmittelbaren Objekt keine solche Methode definiert ist, wird die Prototypvererbungskette durchlaufen, um eine Definition von „toString" zu finden.
For Boolean objects and values, the built-in toString method returns "true" or "false" depending on the value of the boolean object. In the following code
Für Boolean-Objekte und Werte gibt die integrierte toString-Methode je nach dem Wert des Boolean-Objekts "true" oder "false" zurück. Sehen Sie sich den folgenden Code an
For Function objects, the built-in toString method decompiles the function back into the JavaScript source that defines the function This string includes the function keyword, the argument list, curly braces, and function body.
Für Function-Objekte dekompiliert die integrierte toString-Methode die Funktion zurück zur JavaScript-Quelle, welche die Funktion definiert. Diese Zeichenfolge umfasst das function-Schlüsselwort, die Argumentliste, geschweifte Klammern und den Funktionstext.
The Array object overrides the toString method of Object.
The toString method is used by the ObjectListField control.
Die toString-Methode wird vom ObjectListField-Steuerelement verwendet.
Custom numeric format strings are supported by some overloads of the ToString method of all numeric types.
Benutzerdefinierte numerische Formatzeichenfolgen werden von einigen Überladungen der ToString-Methode aller numerischen Typen unterstützt.
The final command uses the ToString method to display the resulting value of the variable as a string.
Der letzte Befehl zeigt mithilfe der ToString-Methode den resultierenden Wert der Variablen als Zeichenfolge an.
You can convert enumeration values to their string representations by calling the static Format method, as well as the overloads of the instance ToString method.
Sie können die Enumerationswerte in ihre Zeichenfolge konvertieren, durch Aufrufen der statischen Format -Methode als auch die Überladungen der Instanz ToString Methode.
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.