NodeJS가있는 E4X
-
15-11-2019 - |
문제
E4X (ECMAScript) 를 얻을 수있는 방법이 있습니까?
번거로 / 잡음없이 슬릭 HTML / XML을 출력하는 데 도움이됩니다.
SpiderMonkey 를 사용하여 잘 작동하지만 NodeJS에서는 작동하는 것 같습니다./ P>
노드 사용
.
$node
> var name = "World";
> var p = <p>Hello {name}</p>;
...
spidermonkey 사용
.
$js
js> var name = "World";
js> var p = <p>Hello {name}</p>;
Hello World
js>
미리 감사드립니다
해결책
Node uses V8, which does not implement E4X as of now.
There's a 2 year old issue, but still active issue on the topic. But it has no real "status" nor was it assigned to anyone.
So in short: The answer is no.
제휴하지 않습니다 StackOverflow