在 JavaScript中流程控制的方法有三種,分別 if … else、switch、條件(三元)運算子 ,代表當條件成立時,執行後續的指令(程式)。
if … else
switch
條件(三元)運算子
Math 物件提供數學常數和數學函式方法的物件。
Math
Math 物件內建的屬性 (Properties)
提升(Hoisting)
console.log(x) //undefinedvar x = 1
Bootstrap 是個前端開發者 CSS 樣式的框架,在裡面有無限個元件並可以透過簡單的操作就做出一個實體網頁,那我們就來看看如何操作吧!
重置 (Reboot)
在上一章節我們有大概提到 Bootstrap 中的排版系統,今天就來好好說明這個功能的使用方式吧!
接續 Array (陣列) 的學習筆記一,再來繼續未完成的部份。
HTML & JavaScript & DOM 之關係
文件物件模型(DOM)提供了HTML文件轉化為樹狀結構化表示,並定義…
建構式 (Constructor)
在這之前我們有花了不少的時間提過有關排序的演算法,今天我們來介紹原始陣列的 Array.prototype.sort 的演算法。
Array.prototype.sort