Thanks!
11 个回答
I see! In that case you will need to do something like this:
var FieldValue = component.find("auraId").get("v.value");
var str=FieldValue.replace(/ /g, '')); // This will remove all the spaces in the string.
if($A.util.isEmpty(str)){
}