版博士V2.0程序
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

43 Zeilen
1.1 KiB

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const url_1 = require("url");
  4. /**
  5. *
  6. */
  7. class Location extends url_1.URL {
  8. /**
  9. * Constructor.
  10. */
  11. constructor() {
  12. super('about:blank');
  13. }
  14. /**
  15. * Replaces the current resource with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session History, meaning the user won't be able to use the back button to navigate to it.
  16. *
  17. * @param url URL.
  18. */
  19. replace(url) {
  20. this.href = url;
  21. }
  22. /**
  23. * Loads the resource at the URL provided in parameter.
  24. *
  25. * Note: Will do the same thing as "replace()" as server-dom does not support loading the URL.
  26. *
  27. * @param url
  28. * @see this.replace()
  29. */
  30. assign(url) {
  31. this.replace(url);
  32. }
  33. /**
  34. * Reloads the resource from the current URL.
  35. *
  36. * Note: Will do nothing as reloading is not supported in server-dom.
  37. */
  38. reload() {
  39. // Do nothing
  40. }
  41. }
  42. exports.default = Location;
  43. //# sourceMappingURL=Location.js.map