這裡用來記錄我學習js 設計模式筆記
在學習網站開發,我們總是需要面對大量修改,然後再restart server,這是一個很厭倦的事。
nodemon是一個專為nodejs設計模組,幫我們解決一些問題。如果你寫好的程式或修改,save file後,自動幫我們restarting the server。
安裝npm install nodemon -g使用nodemon app.js
forEach method是對陣列每個元素遍歷,只執行一次。
語法:array.forEach(callback function(elemet, index, array) { //doSomething })
參加了udacity nanodegree front end web devloper前端開發課程,將會記錄我所學習!
這是一個進入web Developer的學習。如何面對挑戰和解決問題和設定目標。
$(selector).click(function() {…} )
當你click這個event的時候,就會執行。
$(selector).prev(?)
prev是指向上一個或前一個事件(元素)。
$(selector).append(element)