whether the fields in the data structure returned by the backend have no information need to return this key?
for example, there is a list, in the list result. If the list is empty, does the backend not return the list field?
how is it reasonable?
whether the fields in the data structure returned by the backend have no information need to return this key?
for example, there is a list, in the list result. If the list is empty, does the backend not return the list field?
how is it reasonable?
return according to type:
if the document defines an array, return an empty array;
return''if the document defines String, and
return null,
for Object,Number,Boolean. In short, you must return
list is empty return [] or null?.
can be returned or not, depending on how you negotiate with the frontend. The good result of the frontend
will definitely return list: []
. There is no mandatory specification.
Previous: React alarm for controlled and uncontrolled components
Next: When vue uses elementUI's dialog pop-up window, there is a delay problem?