문제

브라우저 공급 업체는

외에 스크립팅 언어 사용을 지원합니까?

  • text/javascript
  • text/vbscript (즉, 만 해당)

예 :

  • text/lua
  • text/cs-script
  • text/php
  • text/tcl

브라우저에서 다른 스크립팅 언어를 사용하고 싶으면 :

<SCRIPT type="text/javascript">
   ...some JavaScript...
</SCRIPT>

<SCRIPT type="text/vbscript">
   ...some vbscript...
</SCRIPT>

<SCRIPT type="text/perl">
   ...some Perl Script...
</SCRIPT>

<SCRIPT type="text/php">
   ...some Php...
</SCRIPT>

<SCRIPT type="text/tcl">
   ...some Tcl...
</SCRIPT>

<SCRIPT type="text/lua">
   ...some Lua...
</SCRIPT>

<SCRIPT type="text/pascalscript">
   ...some PascalScript...
</SCRIPT>

<SCRIPT type="text/cs">
   ...some C#...
</SCRIPT>
.

i?

모든 브라우저와 함께 타사 스크립팅 엔진을 등록하는 방법이 있습니까?

도움이 되었습니까?

해결책

기술적으로, Internet Explorer IActiveScript 구현을 사용하고, Perl (ActiveState에서) 및 IE에서 ClientSide를 실행하는 TCL의 구현을 보았습니다.

그러나 Minitech의 포인트에, 이것은 브라우저를 가로 질러 작동하는 것이 아닙니다. 솔직히 거의 모든 상황에서 끔찍한 생각입니다.

다른 팁

아니오.다른 언어를 사용하려면 최상의 베팅은 JavaScript (예 : Python 용 잠옷)로 컴파일하는 것을 사용하고 있습니다.

Google 크롬에는 기본 코드 플러그인이있어 올바른 플러그인이있는 언어를 사용할 수 있습니다.예를 들어, TCL 구현

이제는 brython 을 실행하여 python 3 프로그램을 실행합니다.

www.brython.info

인상적인 일!

는 많은 브라우저에서 일치합니다 (나는 IE가 없습니다)

... 여전히 perl 포트를 기다리고 ...

There are what I consider hack-ish ways to do it which involves some kind of interpreter between the browser and the script language. Two examples of this are using SilverLight to interface with various dynamic languages, or JRuby to interface using Ruby script. Otherwise it has to get compiled to JS.

No, there isn't. Not any portable way, at least, and not anything you should do.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top