如何在 backgone.marionette 应用程序中使用背景网格?
最佳答案
它看起来很简单。只需将 Backgrid View 添加到任何区域:
MyApp.addRegions({
someRegion: "#some-div"
});
var columns ....
var userList ....
MyApp.someRegion.show(
new Backgrid.Grid({
columns : columns,
collection : userList
})
);
关于javascript - 背网整合,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14790906/