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

前端 未结 0 1234
孤街浪徒
孤街浪徒 2020-12-23 04:38

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         


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