这是我第一次尝试使用凉亭包和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>