【发布时间】:2017-06-05 09:04:27
【问题描述】:
我正在尝试在我的 Angular 2 应用程序中导入 Metronic 数据表,我在主 html 页面中导入所有脚本和引用(带有 html 标记 <script>..</script> 和 <link>),与我初始化 angular 2 的位置相同(使用System.import()..),但它不起作用,它向我展示了没有搜索/重新排序功能的表格。
有什么建议吗?如何以角度 2 导入这些?
提前致谢
<script src="/core-js/client/shim.min.js"></script>
<script src="/zone.js/dist/zone.js"></script>
<script src="/systemjs/dist/system.src.js"></script>
<script src="systemjs.config.js"></script>
<script>
System.import('main.js').catch(function(err){ console.error(err); });
</script>
<link href="/theme2/global/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
<link href="/theme2/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css" />
<script src="/theme2/global/scripts/datatable.js" type="text/javascript"></script>
<script src="/theme2/global/plugins/datatables/datatables.min.js" type="text/javascript"></script>
<script src="/theme2/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.js" type="text/javascript"></script>
【问题讨论】:
标签: javascript jquery angular datatable