弹出框样式,swal is not define
? ?$(".noData").click(function() {
? ? ? ? swal("暫無數據!");
? ? });
或者復雜一點的:
? swal({
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? title:"您沒有權限修改!",
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? type:"warning",
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? showCancelButton:false,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? closeOnConfirm:true,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? closeOnCancel:true
? ? ? ? ? ? ? ? ? ? ? ? ? ? });
?<!--swal提示框需要的樣式-->
? ? <link rel="stylesheet" href="/css/sweet-alert.css">
?<!--用以解決swal is not define問題-->
<script src="/js/sweet-alert.min.js"></script>
? ?
參考網址:https://github.com/tushariscoolster/ng-sweet-alert/issues/1
http://www.sucaihuo.com/js/190.html
總結
以上是生活随笔為你收集整理的弹出框样式,swal is not define的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 广科院机器人团队邹子平分享学习知识
- 下一篇: HTML5学堂,感谢您一年的陪伴(上)