class Util { inject() { Element.prototype.remove = function (removeClassName) { this.classList.remove(removeClassName); } Element.prototype.add = function (addClassName) { this.classList.add(addClassName); } HTMLElement.prototype.text = function (text) { this.innerText = text; } HTMLElement.prototype.html = function (text) { this.innerHTML += text; } } //头部菜单 header(title = "", icon) { $("body").html(`