Is there a better way to create an object-oriented class with jQuery?

前端 未结 6 457
温柔的废话
温柔的废话 2020-12-04 05:50

I use the jQuery extend function to extend a class prototype.

For example:

MyWidget = function(name_var) {
  this.init(name_var);
}

$.extend(MyWidge         


        
6条回答
提交回复
热议问题