我们正在使用带有语义-UI的Ember。我们正在尝试获得一个可排序表(https://semantic-ui.com/collections/table.html#sortable)。
我们用npm install jquery-tablesort安装了kylefox插件
我们的.hbs文件包括以下内容:
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="jquery.tablesort.js"></script>
<script>
$(document).ready(function() {
$('table').tablesort();
});
</script>但我在控制台中得到了以下信息:
jquery.js:3869 Uncaught TypeError:$(.).tablesort不是函数
有什么我们忘了包括的吗?
https://stackoverflow.com/questions/43387671
复制相似问题