var date = Object.keys(data);
Object.keys( ) 会返回一个数组,数组中是这个对象的key值列表
所以只要Object.keys(a)[0], 就可以得只包含一个键值对的key值