会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
laremehpe
新随笔
新文章
管理
上一页
1
2
3
4
5
6
7
···
18
下一页
2024年3月5日
微信浏览器ua标识
摘要: window.addEventListener("load", function () { if (window.navigator.userAgent.indexOf("WeChat") > -1) { //... } });
阅读全文
posted @ 2024-03-05 14:23 laremehpe
阅读(674)
评论(0)
推荐(0)
编辑
2024年3月2日
js 遍历替换
摘要: const replaceIterator = ( content, pattern, replacement )=>{ let index = 0, start = 0; let arr = []; while(true){ const res = content.match(pattern);
阅读全文
posted @ 2024-03-02 15:42 laremehpe
阅读(14)
评论(0)
推荐(0)
编辑
2024年3月1日
html 乱码
摘要: 一般中文乱码的原因: 1、meta标签设置的编码格式与实际文件的编码格式不符,解决方案:将meta标签和文件实际编码设置统一 <meta charset="UTF-8" /> 2、未设置编码格式,使用了 utf-8以外的编码,解决方案: 设置meta标签为对应的编码或将文件的编码格式改为utf-8
阅读全文
posted @ 2024-03-01 14:58 laremehpe
阅读(263)
评论(0)
推荐(0)
编辑
2024年2月24日
python 人脸相似度比较
摘要: import face_recognition from os import walk import json image1 = face_recognition.load_image_file('handsome.png') encodings1 = face_recognition.face_e
阅读全文
posted @ 2024-02-24 00:06 laremehpe
阅读(29)
评论(0)
推荐(0)
编辑
2024年2月8日
typescript 指定 函数this
摘要: interface environment { a: string } let obj:environment = { a: 'xxx' } function test( this: {}, arg:string ) { console.log(this.a()); // xxx }; //调用:
阅读全文
posted @ 2024-02-08 14:59 laremehpe
阅读(5)
评论(0)
推荐(0)
编辑
js 事件冒泡 事件捕获
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>test<
阅读全文
posted @ 2024-02-08 11:53 laremehpe
阅读(14)
评论(0)
推荐(0)
编辑
2024年1月30日
nodejs 组件引入
摘要: const fs = require("fs"); const nodePath = require("path"); // import * as fs from "fs"; const folder = "./"; const condition = ["node_modules", "comp
阅读全文
posted @ 2024-01-30 13:25 laremehpe
阅读(8)
评论(0)
推荐(0)
编辑
2024年1月25日
less 选择器拼接
摘要: .inputs(@name) { @box: Box; .@{name}@{box} { //........... } } .input(textarea) // compile result: .textareaBox{ //......... }
阅读全文
posted @ 2024-01-25 13:16 laremehpe
阅读(9)
评论(0)
推荐(0)
编辑
2024年1月23日
charles
摘要: 重启charles 需要注意状态码为304为缓存: 清除浏览器缓存刷新即可:
阅读全文
posted @ 2024-01-23 17:16 laremehpe
阅读(2)
评论(0)
推荐(0)
编辑
2024年1月15日
js url解析
摘要: 替换url参数 function replaceUrlParams(key, val) { let href = location.href; if (href.indexOf("?") -1) return; var query = href.indexOf("?") + 1; var hash
阅读全文
posted @ 2024-01-15 11:27 laremehpe
阅读(21)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
···
18
下一页