diff options
Diffstat (limited to 'files/ru/web/javascript/reference/global_objects/string/tostring')
-rw-r--r-- | files/ru/web/javascript/reference/global_objects/string/tostring/index.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/files/ru/web/javascript/reference/global_objects/string/tostring/index.html b/files/ru/web/javascript/reference/global_objects/string/tostring/index.html index 5859f1bee6..d2019e47ea 100644 --- a/files/ru/web/javascript/reference/global_objects/string/tostring/index.html +++ b/files/ru/web/javascript/reference/global_objects/string/tostring/index.html @@ -11,25 +11,25 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toString --- <div>{{JSRef("Global_Objects", "String")}}</div> -<h2 id="Summary" name="Summary">Сводка</h2> +<h2 id="Summary">Сводка</h2> <p>Метод <strong><code>toString()</code></strong> возвращает строку, представляющую указанный объект.</p> -<h2 id="Syntax" name="Syntax">Синтаксис</h2> +<h2 id="Syntax">Синтаксис</h2> <pre class="syntaxbox"><code><var>str</var>.toString()</code></pre> -<h2 id="Description" name="Description">Описание</h2> +<h2 id="Description">Описание</h2> <p>Объект {{jsxref("Global_Objects/String", "String")}} переопределяет метод <code>toString()</code>, унаследованный из объекта {{jsxref("Global_Objects/Object", "Object")}}; он не наследует метод {{jsxref("Object.prototype.toString()")}}. Для объектов {{jsxref("Global_Objects/String", "String")}} метод <code>toString()</code> возвращает строку, представляющую объект и делает тоже самое, что и метод {{jsxref("String.prototype.valueOf()")}}.</p> -<h2 id="Examples" name="Examples">Примеры</h2> +<h2 id="Examples">Примеры</h2> -<h3 id="Example:_Using_toString" name="Example:_Using_toString">Пример: использование метода <code>toString()</code></h3> +<h3 id="Example:_Using_toString">Пример: использование метода <code>toString()</code></h3> <p>В следующем примере выводится строковое значение объекта {{jsxref("Global_Objects/String", "String")}}:</p> <pre class="brush: js">var x = new String('Привет, мир'); console.log(x.toString()); // Отобразит 'Привет, мир' </pre> -<h2 id="Specifications" name="Specifications">Спецификации</h2> +<h2 id="Specifications">Спецификации</h2> <table class="standard-table"> <tbody> <tr> @@ -55,10 +55,10 @@ console.log(x.toString()); // Отобразит 'Привет, мир' </tbody> </table> -<h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2> +<h2 id="Browser_compatibility">Совместимость с браузерами</h2> <p>{{Compat}}</p> -<h2 id="See_also" name="See_also">Смотрите также</h2> +<h2 id="See_also">Смотрите также</h2> <ul> <li>{{jsxref("Object.prototype.toSource()")}}</li> <li>{{jsxref("String.prototype.valueOf()")}}</li> |