terseBanner icon indicating copy to clipboard operation
terseBanner copied to clipboard

文件放在head标签里面会报错

Open qiangguoguo opened this issue 7 years ago • 2 comments

jquery.terseBanner.min.js 放在

里面 jquery的下面 报错:Cannot read property 'style' of null

qiangguoguo avatar Oct 12 '17 07:10 qiangguoguo

jquery.terseBanner.min.js 放在 head标签 里面 jquery的下面 报错:Cannot read property 'style' of null

qiangguoguo avatar Oct 12 '17 07:10 qiangguoguo

谢谢提示,问题已修复; src/until.js中,TRANSFORM属性获取的是 document.body.style,文件放在head标签里面,body还没有加载完成,所以读取不出来,现在修改为 document.documentElement.style

happyfreelife avatar Oct 13 '17 07:10 happyfreelife