js获取域名设置属性 阿星小栈 //获取域名 document.domain //获取页面高度 window.innerHeight //设置属性 document.querySelector('.firstModal').style.height = '100%';