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では、常にフェッチのエラーコールバックに入ります。

F12開発ツールの[ネットワーク]タブを確認しましたが、コレクションのネットワーク呼び出しが表示されていません。

これをエラーコールバックとして使用する場合:

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

印刷するだけですLOG: undefined

これが何であるかについてのアイデアはありますか?

4

0 に答える 0