es6操做數組

const table=[]; const data = [{'name':'nick','age':20},{'name':'locky','age':12}] const first = data[0] const head = Object.keys(first) const res = data.map(v=>{ head.map(h=>{ console.log(
相關文章
相關標籤/搜索