1. /**
    2. * 下载osshtml文件展示
    3. */
    4. downloadHtml = (url) => {
    5. const xhr = new XMLHttpRequest()
    6. xhr.open('GET', url, true)
    7. xhr.responseType = 'DOMString'
    8. xhr.onload = () => {
    9. document.getElementById('centerBox').innerHTML = xhr.response
    10. }
    11. xhr.send()
    12. }