var Student = function(){}
Ext.apply(Student.prototype,{
id:0,
name:"",
print:function(){
alert(String.format("id={0},name={1}",this.id,this.name));
}
});
// 类静态方法
Student.alertMsg = function(_id,_name) {
var _student = new Student();
_student.id = _id;
_student.name = _name;
_student.print();
}
Student.alertMsg(2000,'javafx');