var apiDomain = 'https://solutionsupport.21vbluecloud.com/'; var bcResourceUrl = 'https://bcssstorage.blob.core.chinacloudapi.cn/consultation/'; var bcStyleUrl = bcResourceUrl + 'style.css'; var bcJqueryUrl = bcResourceUrl + 'jquery-3.6.0.min.js'; var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = bcStyleUrl; document.getElementsByTagName("head")[0].appendChild(link); //var script = document.createElement("script"); //script.setAttribute('type', 'text/javascript'); //script.setAttribute("src", bcJqueryUrl); //document.getElementsByTagName("head")[0].appendChild(script); //script.onload = function () { // main() //} var bcBtn = document.createElement('button'); bcBtn.id = "bcConsultation"; bcBtn.className = "bc-btn bc-btn-bluecloud"; bcBtn.innerHTML = "联系我们"; document.body.appendChild(bcBtn); var bcBox = document.createElement('div'); bcBox.className = "bc-box bc-hide"; bcBox.innerHTML = `