是否有任何理由在Internet Expolorer中用JScript替换JavaScript? [英] Is there any reason to replace JavaScript with JScript in Internet Expolorer?

查看:97
本文介绍了是否有任何理由在Internet Expolorer中用JScript替换JavaScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,当JScript与JavaScript不同时,IE如何解释jQuery以及所有其他JavaScript-s?

So when JScript is different from JavaScript, how does IE interpret jQuery, and all the other JavaScript-s ?

用JScript替换JavaScript是否更好? IE浏览器?是否有任何性能差异?

Is it better to replace the JavaScript with JScript for IE? Are there any performance diferences?

推荐答案

JScript和JavaScript是相同的。它们只是彼此的别名:

JScript and JavaScript are the same. They're just aliases for each other:

(通过维基百科


正如JavaScript大师道格拉斯·克罗克福德在题为 The JavaScript Programming Language <的演讲中所解释的那样/ Y>在YUI Theatre上,[微软]不想与Sun讨论商标问题,所以他们称他们的实现是JScript。很多人认为JScript和JavaScript是不同的但是类似的语言。事实并非如此它们只是同一种语言的不同名称,名称不同的原因是为了解决商标问题。

As explained by JavaScript guru Douglas Crockford in his talk entitled The JavaScript Programming Language on YUI Theater, "[Microsoft] did not want to deal with Sun about the trademark issue, and so they called their implementation JScript. A lot of people think that JScript and JavaScript are different but similar languages. That's not the case. They are just different names for the same language, and the reason the names are different was to get around trademark issues."

只有脚本之间的差异才会出现跨浏览器差异。

The only scripting differences between the 2 will be in cross-browser differences.

这篇关于是否有任何理由在Internet Expolorer中用JScript替换JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆