我正在尝试在Alertify中使用 if 语句,但它似乎不起作用,我做错了什么吗?
var Question = alertify.prompt("what is your name?","lenovo")
if (Question === "lenovo"){
function(evt, value)
{ alertify.success('You entered: ' + value) });
}
我正在尝试在Alertify中使用 if 语句,但它似乎不起作用,我做错了什么吗?
var Question = alertify.prompt("what is your name?","lenovo")
if (Question === "lenovo"){
function(evt, value)
{ alertify.success('You entered: ' + value) });
}