【发布时间】:2017-08-18 16:21:08
【问题描述】:
我正在使用 npm bootstrap-sweetalert 库来显示成功的弹出窗口。
https://github.com/adeptoas/sweet-modal
admin\src\index.html
<!doctype html>
<html>
<head>
<!--Importing the library here!!-->
<link rel="stylesheet" href="../node_modules/sweet-modal/dist/min/jquery.sweet-modal.min.css" />
<script src="../node_modules/sweet-modal/dist/min/jquery.sweet-modal.min.js"></script>
</head>
在我的 .ts 文件中:
swal("Good job!", "You clicked the button!", "success")
我的文件夹 str 是:
Project/admin/node_modules/sweet-modal/dist/js 和 css 文件
但我只是得到类似库中没有弹出和刻度动画的东西:
【问题讨论】:
标签: javascript node.js twitter-bootstrap angular2-routing