if ($("span", $("#txtStere") .siblings("div")).text() === "*");
{
if (!IsNum("#txtStere")) {
$("#txtStere"). next().text("The freight template you selected is priced by volume, and the logistics volume cannot be empty and must be a number");
return false;
} else {
$("#txtStere" ).next().text("");
}
}
The above js code will execute the code in curly brackets regardless of whether the result of the if condition is true or false. I After working for more than an hour, I couldn’t figure out what was going on. It crashed and crashed. Finally, by some strange coincidence, I discovered the reason. There was an extra semicolon after the parentheses of the if condition. Is it true? It crashed!