且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何将功能标记为“私有"?要通过Google Closure Compiler重命名?

更新时间:2023-11-05 23:11:52

仅在不使用 this

Just use without this

function Player(id) {

  /**
   *  Creates stuff
   *  @private
   */
  createSomething = function() {
    // do something good
  };
}