以面向對象思想寫一個js函數

function Student(name,age,id) { this.name = name; this.age = age; this.id = id; }this var student = new Student("Tom",25,"1000"); alert(student.name); alert(student.age); alert(student.id);spa 簡單吧。io
相關文章
相關標籤/搜索