找到一款漂亮的替代alert的插件sweet alert
http://tristanedwards.me/sweetalert/
但是我不知道在我的php文件中如何去正确引用他。
我的页面没有写入HTML标记,只有php文件。
需要在目前中间这行代码中将alert替换为sweetalert:
if($_POST['A']=="用户名" || $_POST['Ar]=="")
{
echo "<script>alert('请输入领用人');location.href='ldt.php'</script>";
exit;
}
请教一下该如何操作
首先下载他的文件包放到你的网站,在php中同样echo引入代码,再把alert替换成sweetalert
首先下载他的文件包放到你的网站,在php中同样echo引入代码,再把alert替换成sweetalert
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号