class Index { constructor() { this._init() } _init() { $('body').prepend(`
`) } /* 更新界面的点击信息 */ updateInfo(clickMode, floor, event) { var infoDiv = document.body.getElementsByClassName('mapInfoBox')[0]; infoDiv.innerHTML = ` `; } } var UI window.onload = () => { UI = new Index() }