jQuery的静态方法和实例方法
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>08-静态方法和实例方法</title> <script src="../js/jquery-3.4.1.js"></script><script> function AClass() { } AClass.staticMethod = function () { alert("staticMethod"); } AClass.staticMethod(); AClass.prototype.instanceMethod= function () { alert("instanceMethod"); } var a=new AClass(); a.instanceMethod();</script></head><body></body></html>