惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
W
WeLiveSecurity
IT之家
IT之家
A
About on SuperTechFans
B
Blog
L
LangChain Blog
H
Help Net Security
Engineering at Meta
Engineering at Meta
Recent Announcements
Recent Announcements
Google Online Security Blog
Google Online Security Blog
宝玉的分享
宝玉的分享
MyScale Blog
MyScale Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
N
News and Events Feed by Topic
Schneier on Security
Schneier on Security
GbyAI
GbyAI
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
Cloudbric
Cloudbric
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Y
Y Combinator Blog
S
Security Affairs
The Last Watchdog
The Last Watchdog
H
Heimdal Security Blog
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
博客园 - 聂微东
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Privacy & Cybersecurity Law Blog
V
Visual Studio Blog
H
Hacker News: Front Page
Recorded Future
Recorded Future
Cyberwarzone
Cyberwarzone
L
Lohrmann on Cybersecurity
Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy International News Feed
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Blog — PlanetScale
Blog — PlanetScale
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
C
Cybersecurity and Infrastructure Security Agency CISA
AWS News Blog
AWS News Blog
Jina AI
Jina AI
N
News | PayPal Newsroom
S
Schneier on Security

Backbone.js

渣渣想请教下有关backbone的一点入门理解问题 关于BackboneJS中extend实现的理解 - V2EX Backbone.js的兼容性怎么样?ie6能支持吗 - V2EX backbone.js的例子问题 - V2EX js模板过于集中的问题 请问国内有什么关于Backbone.js的社区么? - V2EX
有用过Backbone的吗,backbone在不同路由跳转的时候可以从服务器取模板吗?还是说要所有的模板都要取回来?
yakczh · 2012-12-27 · via Backbone.js

这是一个创建于 4916 天前的主题,其中的信息可能已经有所发展或是发生改变。

loddit

1

loddit      2012 年 12 月 27 日

从服务器取模板必然需要ajax加载,体验不够流畅,而往往前端模板都不是很复杂,好处也往往大于坏处,所以直接带上比较好。

jackyz

2

jackyz      2012 年 12 月 28 日

简短回答:

1,可以的。
2,不用,不过这样最简单(代价也不大)。

异步加载模版请自己放 google 找 backbone.marionette 的例子。

yakczh

3

yakczh      2012 年 12 月 28 日

App.Controllers.Routes = Backbone.Controller.extend({
routes: {
"!/hello" : "hello",//使用#!/hello驱动路由
},
hello : function() { ... }
});
这样报错

TypeError: Backbone.Controller is undefined
[在此错误处中断]

App.Controllers.Routes = Backbone.Controller.extend({

lyuehh

4

lyuehh      2012 年 12 月 28 日

Backbone 0.5.3以后就没有Controller了,改叫Route了