Set a default for variable that does not exist?

前端 未结 0 1017
闹比i
闹比i 2021-02-20 09:35

I\'m working on a project in which there is an API passing JSON that may or may not include a variable.

For instance the JSON could look like either of these:



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