Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kissy mobile中使用MVC开发模式 #6

Open
zhenn opened this issue Apr 12, 2013 · 2 comments
Open

kissy mobile中使用MVC开发模式 #6

zhenn opened this issue Apr 12, 2013 · 2 comments
Assignees

Comments

@zhenn
Copy link

zhenn commented Apr 12, 2013

在业务实现中,经常用到backbone等MVC框架,而backbone的实现依赖于zepto(事件代理及dom操作)及underscore(方法集)。

这样就造成,如果在项目中把backbone当成第三方模块使用,zepto及underscore都需悉数引入。跟kissy这个基础框架就会产生很多重复的部分,如此高的重合度,将给项目的基础架构选择带来很大的难题。

基于目前形式,是否可以hack一份backbone-kissy的东西,去除backbone对zepto、underscore的依赖,完全基于kissy实现。

大家讨论下。

@ghost ghost assigned zhenn Apr 12, 2013
@yiminghe
Copy link
Member

backbone 功能不多,只有collection model router? kissy 有 mvc 模块(目前看来实现不是太好),我觉得 kdk 可以根据移动的需求实现类似 backbone 的功能

@jayli
Copy link
Member

jayli commented Apr 14, 2013

能完美的移植过来当然更好,目前实现backbone的kissy版本可能会有点难,现在kissymobile中内置了zepto,可以使用use('mobile/zepto/,mobile/backbone/')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants