如何检查是空或空中稿
if(typeof propertyValue!='undefined' && propertyValue){
//execute code here
}
javascript检查,如果串是空的
var string = "not empty";
if(string == ""){
console.log("Please Add");
}
else{
console.log("You can pass"); // console will log this msg because our string is not empty
}