Command Palette
Search for a command to run...
Code-Server 提示 This is likely because the editor is not running in a secure context
今天在code-server遇到一个错误提示 如下: crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web...
Chrome Edge 浏览器控制台不允许粘贴
会弹出警告: Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to steal your identity or take control of your computer. P...
极简版自建一言语句php
查看效果:<https://www.krjojo.com/resources/sentences/> 这是hitokoto原版效果:<https://v1.hitokoto.cn/> 简直就是一模一样。 优点: 文件都在本地服务器 不依赖别人网站,高稳定性 不依赖数据库 可以自己修改语句包 缺点: 性能有那么一丢丢下降 一言数据来自:<https://github.com/hitokoto-osc...
解决动态ajax/pjax加载mathjax不生效问题
在每次跳转的脚本后面添加执行脚本 如 window.pjaxLoaded = function(){ //页面每次跳转都会执行这里的代码 //do something... } 里面添加 $.getScript("//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML", function(...
WordPress页脚显示页面加载时间的方法
将下面的代码添加到当前主题的 函数模板(functions.php) 文件: //显示页面查询次数、加载时间和内存占用 From WNAG.COM.CN function performance( $visible = false ) { $stat = sprintf( '本次加载耗时:%.3fs', timer_stop( 0, 3 ) ); echo $visible ? $stat : "...