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');
Ext类静态方法
最新推荐文章于 2022-07-23 00:00:29 发布