0

一旦我从服务器收到数据,我将我的收藏创​​建为

var actionTypeCollection = new Backbone.Collection(responseMsg);

然后创建多建议框,现在一旦将数据从该页面保存到服务器,我的问题是,当我重新加载页面时,是否可以使用保存在我的数据库中的数据加载这个框

  $('input[name="actiontype"]').multisuggest({
        sources: [
            {
                type: 'backbone.collection',
                data: actionTypeCollection,
                filter: actionComboCollectionFilter,
                listFormatter: actionComboCollectionListFormatter,
                inputFormatter: actionComboCollectionInputFormatter,
                valueAttribute: actionComboCollectionValueAttribute
            }
        ],              
        loadingIconClass: 'msuggest-loading',
        noResultsText: 'No matching cheeses.',
        enableDropdownMode: true,
        delay: 300,
        minLength: 2
    });
4

0 回答 0