backbone之Backbone.$
程序员文章站
2022-04-28 23:25:43
...
本文介绍一下 Backbone.$
- If you have multiple copies of jQuery on the page, or simply want to tell Backbone to use a particular object as its DOM / Ajax library, this is the property for you.
源码:
// For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns // the `$` variable. Backbone.$ = $;