번역 작업 진행중입니다.
이 페이지에는 사용할 수 없지만 더 이상 사용할 수 없지만 사용할 수 없는 사용할 수 있는 자바 스크립트의 기능이 나열되어 있습니다(더 이상 사용할 수 없음).
지모가 풍부한 용모
이러한 사용되지 않는 기능은 여전히 사용될 수 있지만 향후에 완전히 제거될 것으로 예상되므로 주의해야 합니다.
사용자 코드에서 사용할 수 있도록 작업을 수행해야 합니다.
RegExp 속성
다음 replacement strings: 속성이 사용되지 않습니다.
이는 사용자의 사용에 영향을 미치지 않습니다.
| Property | Description |
|---|---|
$1-$9 |
다음 코드 예제에서는 클래스의 인스턴스를 보여 줍니다. |
$_ |
입력 정보를 참조하십시오.. |
$* |
참고 항목 바로 가기 키 |
$& |
See lastMatch. |
$+ |
See lastParen. |
$` |
See leftContext. |
$' |
See rightContext. |
input |
정규식이 일치하는 문자열을 가져옵니다. |
lastMatch |
마지막으로 연결된 문자 |
lastParen |
맨 위로 이동 마지막 디스크 조각 모음이 있는 경우. |
leftContext |
이전의 가장 최근의 성냥 조각 모음. |
rightContext |
가장 최근의 경기 이후 순 인. |
The following are now properties of RegExp instances, no longer of the RegExp object:
| Property | Description |
|---|---|
global |
모든 가능한 일치 항목을 문자열에 대해 테스트할 수 있는지 여부 또는 firs에 대해서만 테스트를 수행할 것인지 여부. |
ignoreCase |
일련의 게임을 시도하는 동안 이벤트를 무시할지 여부. |
lastIndex |
다음 시합을 시작하는 지수. |
multiline |
여러줄에서 줄을 검색할 수 있는지 여부. |
source |
패턴의 텍스트. |
RegExp 법
- The
compile()메서드를 사용할 수 없습니다.. - The
valueOf방법은 더 이상RegExp전문화되지 않습니다 . UseObject.valueOf().
기능 속성
- The
callerandargumentsproperties are deprecated, because they leak the function caller. Instead of the arguments property, you should use theargumentsobject inside function closures.
Legacy generator
Legacy generator function statementandLegacy generator function expressionare deprecated. Usefunction* statementandfunction* expressioninstead.JS1.7/JS1.8 Array comprehensionandJS1.7/JS1.8 Generator comprehensionare deprecated.
Iterator
StopIterationis deprecated.Iteratoris deprecated.
Object methods
watchandunwatchare deprecated. UseProxyinstead.__iterator__is deprecated.__noSuchMethod__is deprecated. UseProxyinstead.
Date methods
getYearandsetYearare affected by the Year-2000-Problem and have been subsumed bygetFullYearandsetFullYear.- You should use
toISOStringinstead of the deprecatedtoGMTStringmethod in new code. toLocaleFormatis deprecated.
Functions
- Expression closures are deprecated. Use regular
functionsor arrow functions instead.
Proxy
- Proxy.create and Proxy.createFunction are deprecated. Use
Proxyinstead. - The following traps are obsolete:
hasOwn(bug 980565, Firefox 33).getEnumerablePropertyKeys(bug 783829, Firefox 37)getOwnPropertyNames(bug 1007334, Firefox 33)keys(bug 1007334, Firefox 33)
Escape sequences
- Octal escape sequences (\ followed by one, two, or three octal digits) are deprecated in string and regular expression literals.
- The
escapeandunescapefunctions are deprecated. UseencodeURI,encodeURIComponent,decodeURIordecodeURIComponentto encode and decode escape sequences for special characters.
String methods
- HTML wrapper methods like
String.prototype.fontsizeandString.prototype.big. String.prototype.quoteis removed from Firefox 37.- non standard
flagsparameter inString.prototype.search,String.prototype.match, andString.prototype.replaceare deprecated.
Obsolete features
These obsolete features have been entirely removed from JavaScript and can no longer be used as of the indicated version of JavaScript.
Object
| Property | Description |
|---|---|
__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
| Property | Description |
|---|---|
arity |
Number of formal arguments. |
Array
| Property | Description |
Array.observe() |
Asynchronously observing changes to Arrays. |
Array.unobserve() |
Remove observers. |
Number
ParallelArray
Statements
for each...inis deprecated. Usefor...ofinstead.- Destructuring
for...inis deprecated. Usefor...ofinstead. - let blocks and let expressions are obsolete.
E4X
See E4X for more information.
Sharp variables
See Sharp variables in JavaScript for more information.