下面,我們會用JavaScript 的 map() function 迭代 numbers array,我們每次都會回傳一個 <li> element。最後,我們會把結果產生的element array 設定為 listItems :.
確定! 回上一頁