sweetalert

    1热度

    1回答

    如何使用sweetalert进行没有确认按钮的Ajax调用,但仍显示加载gif?基本上我希望在Ajax调用运行时显示加载gif。开箱即用的解决方案要求您在Ajax调用之前启用确认按钮。 下显然是行不通的: window.swal({ title: "Checking...", text: "Please wait", imageUrl: "images/ajaxloa

    -1热度

    2回答

    我一直试图超过两天运行SweetAlert提示在模式引导没有成功,输入不可访问,我不明白为什么。我需要帮助。 $("#openSWAL").click(function(){ \t swal({ title: "An input!", text: "Write something interesting:", type: "input",

    0热度

    1回答

    我运行到其内容在我的谷歌Chrome浏览器的控制台遵循错误语法错误: Uncaught SyntaxError: Unexpected end of input 下面是我的代码: /*===== Login Alert ======*/ function loginAlert() { swal({ title: "Login Required", type:

    1热度

    1回答

    我到目前为止的代码,把我送到某个网页: swal({ title: 'Successfully Registered!', text: "Do you want to go to the Log In page?", type: 'success', showCancelButton: true, confirmButtonColor: '#308

    2热度

    1回答

    我试图使用Sweet Alert库进行警报。 我试图集成用于删除项目的确认提醒的代码,但是当我点击删除项目的按钮时,这些工作不起作用。该对话框不显示。 代码以前整合甜警报: $(".delete-link").click(function() { var id = $(this).attr("id"); var del_id = id; var parent = $(

    1热度

    1回答

    返回值 我使用sweetalert插件,显示通知... 现在我需要从是获得价值/未确认 function confirm(message) { swal({ title: "Are you sure?", text: message, type: "warning", showCancelButton: true, confirmButtonCo

    1热度

    2回答

    我在Laravel的Sweet Alert中做了一个删除模式,它正在删除我选择的用户。然而,我会删除后重新回到用户名单,因为我的destroy()方法说。 <script> $('a#delete_user').on('click', function() { var url = $(this).attr("data-href"); swal({

    0热度

    2回答

    我在编码PHP laravel初学者,请帮助 我用laravel 5.3,我想打一个确认使用删除SweetAlert 我已经安装槽"npm install"和它已经在node_modules文件夹 的问题是什么我必须在使用这个模块去完成。 谢谢

    0热度

    1回答

    现在我有这样的代码: swal({ title: 'Loading cars from data base', showLoaderOnConfirm: true, preConfirm:() => { return this.carsSvc.getCars().then((cars: ICar[]) => { this.setData(c

    1热度

    1回答

    这是我的第一个问题。我希望清楚。 所以,我用SweetAlert与图像加载消息,但图像不会出现,我不知道为什么...... window.onbeforeunload = function() { swal({ title: 'Sweet!', text: 'Modal with a custom image.', imageUrl: 'ht