# 1/25 JavaScript ###### tags: `JavaScript` # 39 單一選擇結構if ![](https://i.imgur.com/erN6AUe.png) # 51 函數的功能 ![](https://i.imgur.com/RxHa0tf.png) # 52 函數宣告 ![](https://i.imgur.com/6vmXZsC.png) # 56 變數的範圍 以function為基準 var 在function外面就是global變數 裡面是local ![](https://i.imgur.com/WgLX6Sz.png) ![](https://i.imgur.com/DqEjDBY.png) (02varScope.html) # 59 JavaScript物件種類 ![](https://i.imgur.com/VJ55xxm.png) (參考)![](https://i.imgur.com/akaih6W.png) (參考64)![](https://i.imgur.com/3jnCwiy.png) # 60 JavaScript物件的屬性與方法 ![](https://i.imgur.com/wW18Yh1.png) # 61 Global物件 ![](https://i.imgur.com/dHIEHfC.png) https://www.w3schools.com/jsref/jsref_obj_global.asp # 62 字串物件(String Object)1/3 index 搜尋 find SELECT ![](https://i.imgur.com/nzxw4qT.png)![](https://i.imgur.com/CxgACjZ.png) (02stringObject.html) # 63 字串物件屬性與方法 ![](https://i.imgur.com/kRTewWD.png) # 64 取得標籤元素屬性值 ![](https://i.imgur.com/TYWgn5K.png) (參考)![](https://i.imgur.com/9m8iXmg.png) (03checkPassword.html) (031checkName.html ![](https://i.imgur.com/7le5esZ.png) ) # 66.67 String物件(String Object)2/3 ![](https://i.imgur.com/CbRF1Tk.png) ![](https://i.imgur.com/7GnQwQL.png) # 68 Date物件 ![](https://i.imgur.com/8zVmiQ6.png) ![](https://i.imgur.com/5VT3Fgz.png) # 69 Date物件 ![](https://i.imgur.com/Nt4kklJ.png) # 70 Object物件 {}=物件 ""=字串 ![](https://i.imgur.com/Oxp5zyv.png) # 71 for/in迴圈 ![](https://i.imgur.com/kPto7WQ.png) # 72 Array物件 ![](https://i.imgur.com/S9oqIDJ.png) # 73 Array物件的使用 ![](https://i.imgur.com/OxhZbhf.png) # 74 Array物件的方法 https://www.w3schools.com/js/js_arrays.asp ![](https://i.imgur.com/397ujo1.png)![](https://i.imgur.com/8fmXD7A.png) https://www.w3schools.com/jsref/jsref_push.asp https://www.w3schools.com/jsref/jsref_pop.asp ![](https://i.imgur.com/FEwa7YO.png) # 75 Array物件的方法範例 ![](https://i.imgur.com/GGTK6Pv.png) ![](https://i.imgur.com/wllabR1.png) ![](https://i.imgur.com/e4caP5P.png) 排序http://notepad.yehyeh.net/Content/Algorithm/Sort/Sort.php # 76 JSON字串規則 ![](https://i.imgur.com/3oVqgdW.png) https://www.json.org/json-en.html # 77 JSON字串規則 如果是物件可以不用"" 但是json的格式要"" ![](https://i.imgur.com/e7cZxKt.png) ![](https://i.imgur.com/gdellM6.png) ![](https://i.imgur.com/mbdDYu6.png) # 78 json ![](https://i.imgur.com/dJlc7NZ.png) # 79 讀取json中的資料 ![](https://i.imgur.com/R9OqbvJ.png) ![](https://i.imgur.com/WXDfF8L.png) # 題外話 AJAX 非同步傳輸 # 80 JSON的方法 ![](https://i.imgur.com/hHYLuYR.png) # 81 JSON的方法範例 ![](https://i.imgur.com/u4ZZidk.png) ![](https://i.imgur.com/RsEPNW8.png) # 82 Math物件 ![](https://i.imgur.com/84rTtAQ.png) # 83 RegExp物件 ![](https://i.imgur.com/YQnhlfT.png) # 84.85 正規式字元 ![](https://i.imgur.com/9a8CYyS.png)![](https://i.imgur.com/8bIaloI.png) ![](https://i.imgur.com/Ib6oLb5.png) # 86 正規是字元(範例) ![](https://i.imgur.com/roAKhjh.png) ![](https://i.imgur.com/n8ssVIt.png) 密碼:至少有一個數字 ![](https://i.imgur.com/TXStg3H.png) ![](https://i.imgur.com/gKoRXvo.png)