最佳C#来的JavaScript翻译 [英] Best C# to JavaScript translator

查看:234
本文介绍了最佳C#来的JavaScript翻译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找良好的发动机,能够转换C#源代码JavaScript的模拟。

I'm looking for good engine, capable of translate C# source code to JavaScript-analog.

推荐答案

您应该知道,对于很多问题/项目,你提议没有什么意义。但是,如果你想在C#编写你的Javascript,这是最好的工具,我知道这项工作: http://scriptsharp.com/

You should be aware, that for many problems/projects, what you are proposing makes little sense. However, if you would like to code your Javascript in C#, this is the best tool I know for the job: http://scriptsharp.com/

如果你想要这个,因为你不喜欢的Javascript语法,冗长,类和类型规则(或缺乏);或许你也应该看看 CoffeeScript的。 CoffeeScript的是JavaScript中的一切美好的事物,并将其编译为Javascript。

If you want this because you dislike Javascripts syntax, verbosity, classes, and type rules (or lack thereof); perhaps you should also look at CoffeeScript. CoffeeScript is all the good things in Javascript, and it compiles to Javascript.

现在任何人都读这个答案,也应该意识到打字稿的,特别是如果动机是更好的类型和类型安全。

Anyone reading this answer now, should also be aware of TypeScript, especially if the motivation is better types and type safety.

这篇关于最佳C#来的JavaScript翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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