青春是一個不堪回首卻有靦腆的衝動

chapter3

simple, just do one thing in a function.

A&B 發表在 痞客邦 留言(0) 人氣()

char 1 

If we wirte a clear code for our project, it will help a lot to read and maintenance in the future.

A&B 發表在 痞客邦 留言(0) 人氣()

https://jsbin.com/wonihum/8/edit?html,js,output

簡單的來說RegExp就是在指定的字串中搜尋特定的字元。

A&B 發表在 痞客邦 留言(0) 人氣()

https://jsbin.com/wonihum/4/edit?html,js,output

A&B 發表在 痞客邦 留言(0) 人氣()

https://jsbin.com/wonihum/2/edit?html,js,output

在寫code的時候要了解各個數值的類型,才能有效地知道後續如何去做規劃。

A&B 發表在 痞客邦 留言(0) 人氣()

https://jsbin.com/wonihum/1/edit?html,js,output

 

A&B 發表在 痞客邦 留言(0) 人氣()

https://jsbin.com/wonihum/edit?html,js,output

先來說說switch的基本架構

A&B 發表在 痞客邦 留言(0) 人氣()

variablename=(condition)?value1:value2 

condition內的條件是如果成立,那麼va的值為value1否則為value2

A&B 發表在 痞客邦 留言(0) 人氣()

今天在學javascript的過程中看到一句百思不得其解的一句話

" 不要创建 String 对象。它会拖慢执行速度,并可能产生其他副作用 "

A&B 發表在 痞客邦 留言(0) 人氣()

在javascript中單引號及雙引號,是要告訴電腦這串文字為字串

但如果要傳達的資料內容中包含著單引號,雙引號,或者其他特殊字元時該怎麼辦?\

A&B 發表在 痞客邦 留言(0) 人氣()