Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/479.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 删除前确认甜警报 我有一个包含公告的数据表,“删除”按钮工作正常,但它删除公告时没有得到scriptSweet警报的响应。我希望有人能帮忙_Javascript_Php_Jquery_Sweetalert - Fatal编程技术网

Javascript 删除前确认甜警报 我有一个包含公告的数据表,“删除”按钮工作正常,但它删除公告时没有得到scriptSweet警报的响应。我希望有人能帮忙

Javascript 删除前确认甜警报 我有一个包含公告的数据表,“删除”按钮工作正常,但它删除公告时没有得到scriptSweet警报的响应。我希望有人能帮忙,javascript,php,jquery,sweetalert,Javascript,Php,Jquery,Sweetalert,document.getElementById'deleteannun'.onclick=function { 游泳{ 标题:你确定吗?, 文本:您将无法恢复此公告!, 类型:警告, showCancelButton:true, confirmButtonColor:DD6B55, confirmButtonText:是,删除它!, 取消按钮文字:不,请取消!, CloseOnConfig:false, closeOnCancel:错误 }, 功能确认{ 如果我确定{ 返回true; }否则{

document.getElementById'deleteannun'.onclick=function { 游泳{ 标题:你确定吗?, 文本:您将无法恢复此公告!, 类型:警告, showCancelButton:true, confirmButtonColor:DD6B55, confirmButtonText:是,删除它!, 取消按钮文字:不,请取消!, CloseOnConfig:false, closeOnCancel:错误 }, 功能确认{ 如果我确定{ 返回true; }否则{ 虚张声势,你的声明是安全的,错误; 返回false; } }; } //这里的连接 $sql=按年金ID描述从年金订单中选择年金ID、年金标题、年金作者、年金日期、年金详情; $result=$conn->query$sql; 如果$result->num_rows>0{ 而$row=$result->fetch\u assoc{ echo.$row[annun_title]..$row[annun_author]..$row[annun_date]..$row[annun_details]。 ; } }否则{
}输出php时应使用not as is。。此外,您可能希望触发此事件以便发生:$'form'。submitwarni;Hello@ToniMichelCaubet我编辑了这个问题,你能帮我吗?Hello@dsfq你能帮我吗?试试这个文档。getElementById'deleteannun'。onclick=function{e.preventDefault;/*其余的代码*/你能为我提供一个测试链接吗?