javascript - jsPlumb 最好的 javascript MVC 框架

标签 javascript angularjs backbone.js ember.js jsplumb

这是一个悬而未决的问题,

为了为我的项目做出最好的选择,我需要知道什么是最好的 MVC javascript 框架来结合 jsPlumb 1.5.5 (jQuery) 来做最简单和最强大的实现,以便处理所有业务逻辑和干净的代码划分

我将根据这些知名框架做出选择:

1) AngularJS

这篇 Stack 帖子提到了一种将 jsPlumb 图形代码与 AngularJS Controller 代码分开的方法(使用自定义 AngularJS 服务来处理 jsPlumb 逻辑): Using AngularJS and jsPlumb (use jsPlumb functions in AngularJS controller)

这里有一个简单的实现示例: https://github.com/mrquincle/jsplumb-example

2) Ember.js

我找到了这篇 Stack 帖子,提到了一个问题(已解决): Using jsPlumb in an Ember.js Application

3) Backbone.js

我只找到一个非常非常轻量级的样本..

感谢这个有用的链接,我得到了关于这 3 个框架的一些信息:

https://sporto.github.io/blog/2013/04/12/comparison-angular-backbone-can-ember/

我需要知道什么是最好的方法来制作一个沉重而干净的前端全 js 应用程序来实现这种产品:

http://equationmap.com/322/#.U1d8gfl_v-1

从我的 Angular 来看,AngularJS 是当今最好的选择,但我想了解这个框架是否有可能动态添加一些新的 HTML 元素(jsPlumb 元素创建)并将它们绑定(bind)到一个AngularJS 业务逻辑?

最佳答案

根据您的要求,我建议您尝试使用 emberJS 而不是 angularJS。因为( Source ):

"Angular’s focus on simplicity has some serious consequences. There are workarounds for some of these issues that you can implement yourself in your project with great discipline, but ask yourself this: are all developers on your team going to follow the same conventions? Additionally, if you add all sorts of extra constructs to AngularJS to make it work like Ember, why not just use Ember in the first place?"

另请查看:http://ryantablada.com/post/why-i-chose-ember-js

关于javascript - jsPlumb 最好的 javascript MVC 框架,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23239377/

相关文章:

javascript - 按值或 ID 选择更多复选框

javascript - 如何为所有幻灯片指定相同的过渡速度,而不管它们的宽度如何?

rest - 设计带有要从浏览器使用的二进制数据的其余Web服务的最佳方法

javascript - 来自 .create 和序列化表单的 Backbone.js 事件

backbone.js - 如何检测 Backbone.Controller 中的无效路由和触发功能

javascript - 使用API​​获取google map 的 map 类型

javascript - Android 键盘默认为 html 输入首字母大写

angularjs - 如何使用 Spring 和 Angular js 创建 Pdf

AngularJS 1.2,angular-ui 0.6 模式未显示

javascript - 需要根据外部下拉列表中的列名称单独获取 ui 网格列数据