编辑
2019-03-30
主机教程
00

#列出dumpfile esxcli system coredump file list #删除dumpfile esxcli system coredump file remove --force

编辑
2019-03-22
建站知识
00

**说明:**使iframe加载拒绝被嵌套的页面

在使用iframe时,某些站点无法被载入,只能显示出空白页面 如使用以下方式载入百度时:

html
<body> <iframe id = 'iframe' src = 'https://www.baidu.com'></iframe> </body>

正确方式:

html
<body> <iframe id = 'iframe'></iframe> <script> var iframe = document.getElementById('iframe'); iframe.onload = function () { if (this.getAttribute('is-reset') == '1') { this.style.opacity = 0; this.style.display = 'block'; var url = this.getAttribute('src-url'); this.setAttribute('src', url); this.setAttribute('is-reset',0); } else { this.style.opacity = '1'; } }; window.onload = function(){ changeUrl('https://www.baidu.com'); } function changeUrl(url) { iframe.style.display = 'none'; iframe.setAttribute('is-reset',1); iframe.setAttribute('src', 'about:blank'); iframe.setAttribute('src-url', url); }; </script> </body>
编辑
2019-03-02
建站知识
00

**说明:**让“回到顶部”按钮下方实时显示当前页面进度百分比

仅适用于handsome主题

修改步骤

  1. 打开主题设置界面
  2. 进入开发者设置 - 自定义JavaScript
  3. 将以下代码复制进去即可
javascript
$(window).scroll(function(){ var totalH = document.body.scrollHeight || document.documentElement.scrollHeight var clientH = window.innerHeight || document.documentElement.clientHeight var validH = totalH - clientH var scrollH = document.body.scrollTop || document.documentElement.scrollTop var result = (scrollH/validH*100).toFixed(0); var d = document.getElementById('goToTop'); d.innerHTML = "<i class=\"fontello fontello-chevron-circle-up\" aria-hidden=\"true\"></i>"+"<br>"+result+"%"; })

效果图

修改前: 修改后:

编辑
2019-02-28
建站知识
00

开启邮箱SMTP服务

QQ邮箱 设置 - 账户 开启后拿到邮箱授权码

SMTP设置

smtp地址:smtp.qq.com smtp端口:465 验证:SSL 账号:QQ号 密码:邮箱授权码 发件地址:admin@domain.com

编辑
2019-02-27
主机教程
00

安装UltraVNC: 下载地址 安装Node.js: 下载地址 下载noVNC: 下载地址

npm install ws npm install optimist npm install @novnc/novnc npm install mime-types

把noVnc文件夹复制到C:\Users\Administrator\node_modules目录下

node C:\Users\Administrator\node_modules\noVNC\websockify-master\other\js\websockify.js --web C:\Users\Administrator\node_modules\noVNC 5901 localhost:5900

访问: http://mydomain.com:5901

搞定