面向对象 jQuery编程

来源:互联网 发布:php如何运行 编辑:程序博客网 时间:2024/04/30 14:39

  var People=function(){};

  $.extend(People.prototype,{

           say:function(){alert(1);}

     } );


  var p=new People();

   p.say();

原创粉丝点击