How to check if a value is not null and not empty string in JS

前端 未结 0 733
执念已碎
执念已碎 2020-12-23 04:16

Is there any check if a value is not null and not empty string in Javascript? I\'m using the following one:

var data; //get its value from db 
if(data != nul         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题