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

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

Backbone.js

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

Backbone supplies structure to JavaScript-heavy applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface.

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

最近在用backbone改一个后台管理(web端用的django),结果导致很多的js模板,类似<script type="text/template" id="xxx">之类的都放到了同一个.html里,但对于每个不同的router来说,不是所有的模板都需要,这样页面加载完后其实多了很多无用的js模板。

不知道这是不是单页应用的固有问题,还是说有别的解决方法?

  • 模板
  • JS
  • 端用

    5 条回复    1970-01-01 08:00:00 +08:00

    lainuo

    3

    lainuo      2011 年 10 月 22 日

    没办法吧...Jammit好像是用来管理打包的吧...

    放HTML里看着不舒服的话, 扔JS里压掉就不碍眼了...

    panlilu

    4

    panlilu      2011 年 10 月 22 日

    有没有不需要django的类似的包管理库?