我今天开始使用骨干网,并且很难加载它,因为它返回错误为
Uncaught TypeError: Object function (a,b){var c,d=a||
{};this.cid=f.uniqueId("c");this.attributes={};b&&b.collection&&
(this.collection=b.collection);b&&b.parse&&(d=this.parse(d,b)||
{});if(c=f.result(this,"defaults"))d=f.defaults({},
d,c);this.set(d,b);this.changed={};this.initialize.apply(this,arguments)} has no method
'Extend'
这实际上意味着它没有名为 Extend 的方法。
代码
<html>
<head>
<title></title>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/douglascrockford/JSON-js/master/json2.js"></script>
<script type="text/javascript" src="http://underscorejs.org/underscore.js"></script>
<script type="text/javascript" src="http://backbonejs.org/backbone.js"></script>
<script type="text/javascript">
(function($){
Wine = Backbone.Model.Extend();
})(jQuery);
</script>
</head>
<body>
</body>
</html>
不知道背后的实际问题是什么