0

我在主干中有一个集合如下:

define([
    "jquery","backbone",

    "models/homeTile"
],

    function($, Backbone, Model) {
        'use strict';

        // Creates a new Backbone Collection class object
        var Collection = Backbone.Collection.extend({

            // Tells the Backbone Collection that all of it's models will be of type Model (listed up top as a dependency)
            model: Model,

            url: 'http://easyuniv.com/API/hometiles',

            comparator: function(tile) {
                return 1.0 / tile.get('userCount');
            }

        });

        // Returns the Model class
        return Collection;
    }

);

当我在 FF 或 chrome 中对对象调用 fetch 时,它运行得非常好。但是在 IE 中总是进入 fetch 的错误回调。

我查看了 F12 开发工具的网络选项卡,它没有显示集合的网络调用。

当我将此作为我的错误回调时:

error: function(data, response) {
    console.log(response.responseText);
}

它只是打印LOG: undefined

关于这可能是什么的任何想法?

4

0 回答 0