0

这是我第一次尝试使用 bower 包和 NPM。我正在尝试使用 Gridstack.js- link

我错过了什么?任何帮助或输入将不胜感激。

这是我的html的标签:

 <head>
    <link type="text/javascript" href="bower_components/gridstack/dist/gridstack.min.css" />
    <script type="text/javascript" src="bower_components/gridstack/dist/gridstack.min.js"></script>
    <script type="text/javascript" src="bower_components/jquery-ui/jquery-ui.min.js"></script>
    <script type="text/javascript" src="bower_components/lodash/dist/lodash.min.js"></script>
</head>

<body>
<div class="grid-stack">
<div class="grid-stack-item"
    data-gs-x="0" data-gs-y="0"
    data-gs-width="4" data-gs-height="2">
        <div class="grid-stack-item-content"></div>
</div>
<div class="grid-stack-item"
    data-gs-x="4" data-gs-y="0"
    data-gs-width="4" data-gs-height="4">
        <div class="grid-stack-item-content"></div>
</div>
</div>
<script>
$(function () {
var options = {
    cell_height: 80,
    vertical_margin: 10
};
$('.grid-stack').gridstack(options);
});
</script>
</body>
4

0 回答 0