js获取域名设置属性 阿星小栈

 

//获取域名
 document.domain

//获取页面高度
 window.innerHeight

//设置属性
 document.querySelector('.firstModal').style.height = '100%';

 

posted @ 2018-04-10 11:57  阿星小栈  阅读(124)  评论(0编辑  收藏  举报