string對象
var str="hello word"
var str1=“hello,jike,nihao”
1.字符串的長度 str.indexof
2.match:內容匹配
3.replace:替換字符串str.replace("word","nihao");
4.toUpperCase()/toLowerCase:字符串大小寫轉換;
5.strong>split():字符串轉為數組
var s=str1.spilt(",")
document.write(s[1])
DATA對象
var data=new data();
document.write(data):當前日期
獲取年份:data.getfullYeal()
獲取日期:data.gettime()
設置時間getfullYeal( 2010,1,1);

屏幕快照 2017-05-18 下午3.49.11.png
js 內置對象-Array數組對象
兩個數組的合并: a.concat(b);
打印結果:

屏幕快照 2017-05-18 下午3.59.59.png
排序:sort;
加了函數的時候是升序
沒有 添加的時候是54321降序
數組的追加:push
數組的翻轉:reverse
a,b,c

屏幕快照 2017-05-18 下午3.57.49.png
瀏覽器對象