Javascript 的实例不能调用静态函数吗

andlightlight
Wed, 13 Jul 2016 10:09:39 +0000

var testc = function () {
        this.fun1 = function (params) {

        }
    }
    testc.prototype.fun2 = function (params) {

    }
    testc.fun3 = function (params) {

    }

    var instest = new testc();
    instest.fun3();

我记得C++是可以的，lua也可以

阅读整个主题