博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
backbone.js的目的是什么?
阅读量:2380 次
发布时间:2019-05-10

本文共 2633 字,大约阅读时间需要 8 分钟。

本文翻译自:

I tried to understand the utility of backbone.js from its site , but I still couldn't figure out much. 我试图从其网站了解backbone.js的实用程序,但我仍然无法理解。

Can anybody help me by explaining how it works and how could it be helpful in writing better JavaScript? 任何人都可以通过解释它是如何工作来帮助我的,以及它如何有助于编写更好的JavaScript?


#1楼

参考:


#2楼

A web application involving lot of user interaction with many AJAX requests, which needs to be changed from time to time, and which runs in real time (such as Facebook or StackOverflow) ought to use an MVC framework such as Backbone.js. 涉及许多用户与许多AJAX请求交互的Web应用程序(需要不时更改,并且实时运行(例如Facebook或StackOverflow))应该使用诸如Backbone.js之类的MVC框架。 It's the best way to build good code. 这是构建优秀代码的最佳方式。

If the application is only small though, then Backbone.js is overkill, especially for first time users. 如果应用程序虽然很小,那么Backbone.js就是过度杀伤,特别是对于初次使用的用户。

Backbone gives you client side MVC, and all the advantages implied by this. Backbone为您提供客户端MVC,以及由此带来的所有优势。


#3楼

backbone.js is but better than backbone for MVC Pattern by java script backbone.js是但是通过java脚本, 比MVC模式的骨干更好

With backbone you got freedom to do almost anything you wish for. 通过骨干,您可以自由地做任何您想要的事情。 Rather than trying to fork through the api and customize I would use Backbonejs for it's simplicity and ease of implementation. 而不是尝试分叉api和自定义我将使用Backbonejs,因为它的简单性和易于实现。 Again it is hard to say what you require out of the two one is a library another a component 再一次很难说你需要的是另一个是库的另一个组件


#4楼

I have to admit that all the "advantages" of MVC have never made my work easier, faster, or better. 我必须承认,MVC的所有“优势”从未使我的工作变得更容易,更快或更好。 It just makes the whole codeing experience more abstract and time consuming. 它只会使整个代码体验更加抽象和耗时。 Maintenance is a nightmare when trying to debug someone elses conception of what separation means. 当试图调试别人对分离意味着什么的概念时,维护是一场噩梦。 Don't know how many of you people have ever tried to update a FLEX site that used Cairngorm as the MVC model but what should take 30 seconds to update can often take over 2 hours (hunting/tracing/debugging just to find a single event). 不知道有多少人试图更新使用Cairngorm作为MVC模型的FLEX站点,但更新需要30秒才能花费2个多小时(搜索/跟踪/调试只是为了查找单个事件) )。 MVC was and still is, for me, an "advantage" that you can stuff. 对我来说,MVC过去和现在仍然是一个“优势”。


#5楼

Here's a quick Get Started post I wrote on BackboneJS. 这是我在BackboneJS上写的一篇快速入门帖子。 Hope it helps! 希望能帮助到你!


#6楼

Is an MVC design pattern on the client side, believe me.. It's gonna save you tons of code, not to mention a more clean and clear code, a more easy to maintain code. 在客户端是一个MVC设计模式,相信我..它将为您节省大量代码,更不用说更干净和清晰的代码,更容易维护代码。 Could be a little tricky at first, but believe me it's a great library. 起初可能有点棘手,但相信我这是一个很棒的图书馆。

转载地址:http://cfexb.baihongyu.com/

你可能感兴趣的文章
Vmware虚拟机设置固定IP地址
查看>>
能Ping通外网但就是不能打开所有网页的解决办法
查看>>
windows7配置虚拟AP的脚本
查看>>
融合广播或成电台发展新方向 进军大数据
查看>>
看“大数据”如何帮我们寻找爱情
查看>>
国家统计局:利用大数据做好网购统计
查看>>
大数据会带来越来越细的标准
查看>>
你不知道的天猫“双十一”:大数据成为新驱动力
查看>>
北京开放政府信息资源 “大数据”供社会化利用
查看>>
大数据挖掘变革 美赛达软硬云引领车联网商业蓝海
查看>>
停车费上涨需要公开“大数据”
查看>>
大数据和互联网思维或能有效缓解交通拥堵
查看>>
助力大数据开发 IBM收购DBaaS提供商Cloudant
查看>>
大数据驱动电信运营商转型
查看>>
玩转大数据 运动员如何用科技提升成绩
查看>>
广发银行试水大数据 “精细服务”现雏形
查看>>
大数据让社区生活更方便
查看>>
借助互联网大数据打假
查看>>
东信北邮大数据项目获2014中国通信学会科学技术一等奖
查看>>
大数据塑造新时代公共外交
查看>>