JS文件如下:执行不了,请问如下代码应该如何改呢?
function afterSubmit(result){
hide("tst1");
if (result=='OK') {
show("tst2");
}
elseif (result=='NO') {
show("tst4");
}
elseif (result=='验证') {
show("tst5");
}
elseif (result=='失败') {
show("tst6");
}
else{
show("tst3",10000);
}
}
改为如下,就可以
function afterSubmit(result){
hide("tst1");
if (result=='OK') {
show("tst2");
}
else{
show("tst3",10000);
}
}
使用浏览器开发者工具调试,看看result返回的是什么值