- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我需要帮助才能将 jConfirm 与现有代码(php & Jquery & jAlert)结合使用。
function logout()
{
if (confirm("Do you really want to logout?"))
window.location.href = "logout.php";
}
如果我只是将 confirm 更改为 jConfirm 这还不足以使其工作...
谢谢你的帮助
莉娜
最佳答案
function logout()
{
jConfirm('Do you really want to logout?', 'Logout', function(r) {
if (r)
window.location.href = "logout.php";
});
}
编辑评论:
function sid(id){
$_sidId = id;
jConfirm("Delete System ID for " + id + "?", 'Delete Sid', function(r) {
if (r){
window.location.href = "del_sid.php?id=" + $_sidId;
}
$_sidId = null;
});
}
当我更好地看到脚本时,希望从“if”中删除变量“$_sidId”,无论响应如何,它都必须清理变量。
关于php - jConfirm 这个现有的代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1701772/
我有这个 JavaScript 函数。我需要将确认更改为jConfirm。 var isValidSpecialityToSave =function(){ var isValid = f
我有一个简单的脚本,提示用户确认删除,然后它只是提醒他们该过程已正确完成。 我尝试使用 jConfirm,Javascript 控制台输出:“ReferenceError:jConfirm 未定义”
我需要帮助才能将 jConfirm 与现有代码(php & Jquery & jAlert)结合使用。 function logout() { if (confirm("Do you really
我正在使用 asp.net 开发网站。 它包含一个管理面板,单击取消图像后可以删除员工。 首先,我使用 JavaScript 中可用的 confirm 来处理此问题,但这将标题显示为 来自网站的消息。
这是我的代码 function myFunction() { jAlert("Hello","How are you?"); alert("Hi
jquery-confirm 版本:v3.3.0 git:craftpip/jquery-confirm 用于测试的 jsfiddle https://jsfiddle.net/bdtx2ub2/
我是一名优秀的程序员,十分优秀!