Js of the acquisition target key value

var date = Object.keys(data);

Object.keys () returns an array, the array is a list of key value of this object

So long Object.keys (a) [0], can comprise only key values ​​have a key-value pairs

Guess you like

Origin www.cnblogs.com/yang-2018/p/11281130.html