JavaScript基本語法

//字符串
var txt = "Hello";
txt.length=5
txt.indexOf()
txt.replace()
txt.search()

//對象
person=new Object();
person.firstname="Bill";
person.lastname="Gates";
person.age=56;
person.eyecolor="blue";
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章