Var params=null; Method to determine if params is not null:
if(params && params.hasOwnProperty("name")){}
Among them: the console. The info (params); // result: Object {}
Var params=null; Method to determine if params is not null:
if(params && params.hasOwnProperty("name")){}
Among them: the console. The info (params); // result: Object {}