该函数中的$.confirm
调用不起作用。
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>
<script>
// this is working .
$.confirm("Display Message")
function onClick() {
// this is not working ,error message
$.confirm("Display Message")
}
</script>
错误消息
未捕获的TypeError:$ .confirm不是函数
在newFolder(DisplayDocuments:191)
在HTMLAnchorElement.onclick(DisplayDocuments:126)
答案 0 :(得分:-1)
function resetPassword(id, name, email) {
var confirm = confirm("Please confirm the Password rest of '" + name + "' (" + email + ")");
if (confirm == true) {
/* Checks the user and marks them as deactivated */
var password = sforce.connection.resetPassword(id);
} else alert("Password Reset Cancelled!");
}