摘要: 人气APC代码 (鬼剑士) 1501 幽灵鬼剑 1511 西岚 1512 中年人库兰 1513 奥尔卡 1515 鬼泣里恩 1516 索德罗斯1阶 1522 索德罗斯2阶 1523 索德罗斯3阶 1524 索德罗斯4阶 1517 觉醒后的巴伦 1518 阿修罗狂魔 1519 神剑梁月 1520 贪玩 阅读全文
posted @ 2024-02-26 22:03 herry菌 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 代码: 第二版:使用MutationObserver API监听dom init() async function init() { let jq = null if (!document.querySelector('#jquery')) { jq = document.createElement 阅读全文
posted @ 2024-01-12 15:34 herry菌 阅读(84) 评论(0) 推荐(0) 编辑
摘要: js for (let i = 2; i <= 100; i++) { let iszs = true for (let j = 2; j < i; j++) { if (i % j 0) { iszs = false break } } if (iszs) { zs.push(i) } } con 阅读全文
posted @ 2023-11-29 15:26 herry菌 阅读(5) 评论(0) 推荐(0) 编辑
摘要: nodejs 普通文本转base64文本 const base64 = Buffer.from('你好啊,我叫herry菌', 'utf8').toString('base64'); console.log(base64) nodejs base64文本转普通文本 const text = Buff 阅读全文
posted @ 2023-06-26 16:07 herry菌 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 浏览器端增删改查 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" co 阅读全文
posted @ 2023-04-21 10:58 herry菌 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 创建文件tsconfig.json { "compilerOptions": { "jsx": "react", "emitDecoratorMetadata": true, "experimentalDecorators": true, "baseUrl": ".", "paths": { "@/ 阅读全文
posted @ 2023-04-18 16:02 herry菌 阅读(769) 评论(0) 推荐(0) 编辑
摘要: 同时代理api和资源: //服务器代理 proxy: { '/api': { target: 'http://xxx', changeOrigin: true, pathRewrite: { '^/api/': '/api/', }, }, //media资源代理 '/media': { targe 阅读全文
posted @ 2023-03-21 10:11 herry菌 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 使用koajs做一个代理跨域服务。 const Koa = require('koa'); const proxy = require('koa-proxy'); const Router = require('koa-router'); const session = require('koa-s 阅读全文
posted @ 2023-03-19 21:29 herry菌 阅读(56) 评论(0) 推荐(0) 编辑
摘要: nodejs 图片加水印 var images = require('images'); //等待加水印的图片 var sourceImg = images("./image.png"); //水印图片 宽高最大为200px var watermarkImg = images('./biglogo. 阅读全文
posted @ 2022-12-09 16:52 herry菌 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 浏览器的机制如此,在iframe导航变化后手动点击浏览器的后退按钮也依然只是后退iframe中的导航。 有一种解决方案是不要修改iframe.src,而是删除旧iframe元素,新建一个iframe元素并替换它,这样不会产生history。 直接createElement,替换原来的iframe。 阅读全文
posted @ 2022-11-22 17:05 herry菌 阅读(217) 评论(0) 推荐(0) 编辑