stackgrid.adem.js 是一个简单快速的 JavaScript 插件,它可以帮助你创建动态的级联格。
示例代码:
var stackgrid = new Stackgrid; // Configurate your stackgrid options here. stackgrid.config.column_width = 240; // One way to make sure everything is loaded is // to wrap the initializer inside window onload. window.onload = function() { // The initializer takes in two arguements: // the grid container selector, and the grid items selector stackgrid.initialize('#grid-container', '.grid-item'); };