id.js 348 B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports["default"] = void 0;
  6. /**
  7. * Created by hustcc on 18/6/9.
  8. * Contract: i@hust.cc
  9. */
  10. var id = 1;
  11. /**
  12. * generate unique id in application
  13. * @return {string}
  14. */
  15. var _default = function _default() {
  16. return "".concat(id++);
  17. };
  18. exports["default"] = _default;