let array = ['fds', 'ewfg1', 'cvd', 'ew', 'qer', 'jjh', 'rth', 'asd', 'vsd', 'tteh', 'fxv']; let map = {}; for(let i = 0; i < 26; i++){ const key = String.fromCharCode(65 + i) //A-Z赋给key当作键 map[key] = { title: key, items: [] } array.map((v,k)=>{ //遍…