使用SproutCore框架有什么好处?

时间:2014-07-24 06:01:18

标签: javascript jquery sproutcore

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

我对此完全陌生,所以有人可以通过解释它是如何工作以及主要优势来帮助我吗?

1 个答案:

答案 0 :(得分:0)

据我所知,它是js MVC框架。像淘汰或角度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的替代品......它是基于预定义控件(视图)操纵应用程序的另一种模型。