Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
uneval()는 개체의 소스코드에 대한 문자열 표현을 만드는 함수이다.
문법
uneval(object)
인자
object- 자바스크립트 표현식 혹은 구문.
리턴 값
주어진 개체의 소스코드에 대한 문자열 표현
주의: 인자로 넘긴 개체의 유효한 JSON 표현이 아닐 수 있습니다.
설명
uneval()은 최상위 수준의 함수이며 어떠한 개체와도 연관 되어있지 않습니다.
예제
var a = 1;
uneval(a); // 1을 포함한 문자열을 반환한다
var b = '1';
uneval(b); // "1"을 포함한 문자열을 반환한다
uneval(function foo() {}); // "(function foo(){})"를 반환
var a = uneval(function foo() { return 'hi'; });
var foo = eval(a);
foo(); // "hi"를 반환
스펙
포함되어있는 스펙이 없습니다.
브라우저 호환성
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | No support | (Yes) | No support | No support | No support |
| Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | No support | No support | (Yes) | No support | No support | No support |