How does the {_ _ ob__: Observer} object in vue get the length?

The

child component gets a string object passed by the parent component through props. But print out the {_ _ ob__: Observer} object, and what if the object has no length? I need to determine whether the object"s length is 0 and whether each attribute value is empty.

Aug.11,2021

what is the string object? in js, the string is Primitive
to determine whether the string is empty, just use logic or =''.
now you want to print the string but print out {_ _ ob__: Observer} this object shows that you are looking for the wrong thing, and then go back and have a good look at the vue props pass

Menu