//实例函数
function A(){}

//静态方法

A.staticMethod = function(){}

A.staticMethod()

//实例方法

A.prototype.instanceMethod = function(){}

var aaa = new A()

aaa.instanceMehtod()

 

相关文章:

  • 2022-12-23
  • 2021-08-04
  • 2021-09-15
  • 2021-12-01
  • 2021-09-17
  • 2021-10-03
  • 2022-12-23
  • 2021-07-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-12-25
  • 2021-12-28
  • 2021-07-01
相关资源
相似解决方案