JavaScript 的所见即所得
我知道“所见即所得”这个词不能真正应用于 javascript,但我很好奇是否有任何 IDE 可以帮助您通过可视化设计来生成 JavaScript 源代码。使用的框架(如果有)并不重要。
我谈论的是 Visual Studio 中的表单设计器之类的东西。
I know the term "what you see is what you get" cannot be realy applied to javascript, but I am curious if is there any IDE which helps you generate JavaScript sourcecode by visualy designing it. It doesn't matter the framework, if any, used.
I speak about something like the form designer in Visual Studio.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你所问的问题几乎是不可能的,因为 Javascript 是一种动态语言。我见过的最接近的是 Aptana 的对象浏览器,或者可能是集成到您最喜欢的编辑器中的 ctags 之类的东西。但这些东西构建了一个可导航的文本轮廓,而不是“图形”的东西。
虽然 Aptana 已经是你能得到的最好的了,但你仍然会遇到回调函数的问题。回调函数通常没有命名,如何布局/导航没有名称的东西(当然,你可以做形状/符号/等,但这可能很困难)?
也许您正在谈论诸如 UML 之类的东西?如果是这样,我不知道有任何 UML 代码编辑器。不过,那会很酷。至少在开始一个项目时是这样。我猜当代码变得很大时可能很难导航。
或者,也许您正在谈论诸如 VisualStudio 或 Xcode 之类的东西 - 您可以在其中布局界面并将代码连接到它。 Xcode 的 Dashcode 可以做到这一点,但我认为它只适用于它自己的自定义 SDK - 我'我不确定你是否可以使用纯 Javascript。
I think what you're asking might be near impossible since Javascript is such a dynamic language. The closest I've seen is Aptana's object browser or maybe something like ctags integrated into your favorite editor. But these things build a navigable textual outline, not something that's "graphical."
While Aptana is about as good as you can get, you still run into the issue of callback functions. Callback functions usually aren't named and how do you layout/navigate stuff without names (sure, you could do shapes/symbols/etc but that'd probably be difficult)?
Perhaps you're talking about something like UML? If so, I don't know of any UML to code editors. That would be kind of cool, though. At least, when starting a project. Might be hard to navigate when the code gets huge, I would guess.
Or, perhaps you're talking about something like VisualStudio or Xcode - where you layout the interface and have code connected to it. Xcode's Dashcode kind of does this, but I think it only works with it's own custom SDK - I'm not sure if you can use pure Javascript.