In doing this review page, click on the button does not perform approval
Later F12 to see the console error found
Is not performed because flisnullandxyzero
Then figure out this method, which is a common method to copy out this method
Then use console.log output to find error
Discovery method to execute
if (Number (str.replace ( ". ", "")) <0) is stopped when the
overall method --------------------------- -
function flisnullandxyzero(str) {
console.log(str);
if(null==str||( undefined==str)||(""==str)){
return true;
}else{
console.log(Number(str));
if(Number(str.replace(".","")) < 0){
return true;
}else {
return false;
}
}
}
修改之后---------------------------
flisnullandxyzero function (STR) {
IF (== null || STR (STR == undefined) || ( "" == STR)) {
return to true;
} the else {
IF (Number The (STR) <0) {
return to true;
the else {}
return to false;
}
}
}
summary
front page given time, the use of
console.log (); commissioning