js page to determine whether a string is empty
Example: var str = "";
If(str !== null || str!== "") such a null operation is very inaccurate.
Should be changed to:
If(str.length == 0), the judgment accuracy is higher
js page to determine whether a string is empty
Example: var str = "";
If(str !== null || str!== "") such a null operation is very inaccurate.
Should be changed to:
If(str.length == 0), the judgment accuracy is higher