in 默认分类

实现功能DOM更改ID,className,style,会重新生成一份水印插入到DOM中支持Echarts下载时添加水印saveAsImage : {//设置Echarts下载水印 show: true, backgroundColor:{ type: 'pat...

in vps相关

安装nvmwget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.40.0/install.sh | bash curl -o- https://raw.githubusercontent.com/creationix/nvm...

in webpack

1: webpack output 中建议使用contenthash而非chunkhash contenthash是基于文件内容计算出来,如果文件改动生成新的hash,反则保持原hash,便于浏览器long term caching; chunkhash是每npm build的时候都会...

in 默认分类

子资源完整性(SRI)是允许浏览器检查其获得的资源(例如从 CDN获得的)是否被篡改的一项安全特性。它通过验证获取文件的哈希值是否和你提供的哈希值一样来判断资源是否被篡改。SRI是如何工作的?使用 内容分发网络 (CDNs) 在多个站点之间共享脚本和样式表等文件可以提高站点性能并节省带宽。然而...

in vps相关

1: 停掉nginx systemctl stop nginx2: 使用certbot-auto来生成新的证书 (文件存放在root ~)3: ./certbot-auto certonly --standalone --renew-by-default -d letme.ml -d www....