Movatterモバイル変換


[0]ホーム

URL:


  1. Веб-технологии для разработчиков
  2. JavaScript
  3. Справочник по JavaScript
  4. Deprecated and obsolete features

This page was translated from English by the community.Learn more and join the MDN Web Docs community.

View in EnglishAlways switch to English

Deprecated and obsolete features

This page lists features of JavaScript that are deprecated (that is, still available but planned for removal) and obsolete (that is, no longer usable).

Deprecated features

These deprecated features can still be used, but should be used with caution because they are expected to be removed entirely sometime in the future. You should work to remove their use from your code.

RegExp properties

The following properties are deprecated. This does not affect their use inreplacement strings:

СвойствоОписание
$1-$9Parenthesized substring matches, if any.Warning: Using these properties can result in problems, since browser extensions can modify them. Avoid them!
$_Смотритеinput.
$*Смотритеmultiline.
$&СмотритеlastMatch.
$+СмотритеlastParen.
$`СмотритеleftContext.
$'СмотритеrightContext.
inputThe string against which a regular expression is matched.
lastMatchThe last matched characters.
lastParenThe last parenthesized substring match, if any.
leftContextThe substring preceding the most recent match.
rightContextThe substring following the most recent match.

The following are now properties ofRegExp instances, no longer of theRegExp object:

СвойствоОписание
globalWhether or not to test the regular expression against all possible matches in a string, or only against the first.
ignoreCaseWhether or not to ignore case while attempting a match in a string.
lastIndexThe index at which to start the next match.
multilineWhether or not to search in strings across multiple lines.
sourceThe text of the pattern.

RegExp methods

Function properties

  • Thecaller andarguments properties are deprecated, because they leak the function caller. Instead of the arguments property, you should use thearguments object inside function closures.

Legacy generator

Iterator

Object methods

  • watch andunwatch are deprecated. UseProxy instead.
  • __iterator__ устарел.
  • Object.prototype.__noSuchMethod__ is deprecated. UseProxy instead.

Методы даты

Functions

Proxy

Escape sequences

Методы строк

Obsolete features

These obsolete features have been entirely removed from JavaScript and can no longer be used as of the indicated version of JavaScript.

Объект

СвойствоОписание
**count**Returns the number of enumerable properties directly on a user-defined object.
**parent**Points to an object's context.
Object.prototype.eval()Evaluates a string of JavaScript code in the context of the specified object.
Object.observe()Asynchronously observing the changes to an object.
Object.unobserve()Remove observers.
Object.getNotifier()Creates an object that allows to synthetically trigger a change.

Function

СвойствоОписание
arityNumber of formal arguments.

Массив

СвойствоОписание
Array.observe()Асинхронный просмотр изменений в массивах.
Array.unobserve()Remove observers.

Число

ParallelArray

Statements

E4X

СмотритеE4X.

Sharp variables

СмотритеSharp variables in JavaScript.

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp