js how to modify properties

js how to modify properties

In js, it is often necessary to loop the properties and values ​​of the object to encode $.each(params, function(key, val) { if(val!=null&&val!=''){ ** params[key]=encodeURI(val); ** } });

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325462585&siteId=291194637