javascript - 使用 SproutCore 框架有哪些优点?

标签 javascript jquery sproutcore

我正在浏览documentation ,但是关于框架的整体想法并不存在。与 jQuery 这样的框架相比,它有哪些优势或功能?

我对此完全陌生,所以有人可以帮助我解释它是如何工作的以及主要优点是什么吗?

最佳答案

据我了解,它是js MVC框架。就像淘汰赛或 Angular-JS。
尝试他们网站上的另一个链接 about ))

示例:

SC.View.extend({
childViews: ['regularButton', 'iconButton'],
regularButton: SC.ButtonView.extend({
  layout: { width: 120, height: 24, centerX: -70, centerY: 0 },
  title: 'Push Me'
}),
iconButton: SC.ButtonView.extend({
  icon: 'sc-icon-favorite-16',
  layout: { width: 120, height: 24, centerX: 70, centerY: 0 },
  title: 'Love Me'
})

})

Sample for buttons

我猜它类似于 Kendoo UI,但严格基于 MVC。它并不是 jQuery 的替代品...它是基于预定义控件( View )操作应用程序的另一种模型。

关于javascript - 使用 SproutCore 框架有哪些优点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24926159/

相关文章:

php - jquery自动完成标签问题

sproutcore - 在某些Windows 7计算机上的官方SproutCore演示网站上,鼠标单击不起作用

jquery - 使用ajax success和setTimeout在页面刷新后显示 Bootstrap 模式

javascript - 将值传递给方法选项的更有效/更干净的方法?

gwt - 哪个Web应用程序框架?

web-applications - 最佳工具网络应用,该应用大量使用了页面上的拖放小部件

javascript - 在调整大小或滚动之前,Google map API 不会显示

javascript - JQuery printThis 和 Style 属性

javascript - 如何允许用户使用此 JQuery 示例关闭幻灯片?

javascript - 如何将数据从服务传递到 Controller AngularJS + Stripe