2024年12月25日

js实现选择文本后弹复制气泡

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Context Menu Example</title> <style> #contextMenu { display: none; position: abs 阅读全文

posted @ 2024-12-25 09:34 anjun_xf 阅读(8) 评论(0) 推荐(0) 编辑

2024年12月13日

undefined特殊情况

摘要: 为啥这样代码会丢节点 let ab={a:undefined,b:'1'}; JSON.stringify(ab)//属性 undefined,生成 JSON 串会被忽略(JSON 标准没有 undefined 这个值) //打印 {"b":"1"} NaN、Infinity 和 -Infinity 阅读全文

posted @ 2024-12-13 09:47 anjun_xf 阅读(4) 评论(0) 推荐(0) 编辑

2024年11月28日

支持1G超大文件下载并及时删除

摘要: var filePath=@"d:\超1G文件.zip"; FileInfo downloadFile = new FileInfo(filePath);//支持1G超大文件 //等几分钟后删除 Task task1 = new Task(() => { Thread.Sleep(1000 * 60 阅读全文

posted @ 2024-11-28 14:33 anjun_xf 阅读(6) 评论(0) 推荐(0) 编辑

2024年9月7日

自己C#项目中使用FiddlerCore4.dll

摘要: https://www.cnblogs.com/212s/p/17070901.html https://www.cnblogs.com/realwy/p/8111253.html 源码 https://www.cnblogs.com/kuiyu/p/18177663 方法介绍很细 https:// 阅读全文

posted @ 2024-09-07 17:40 anjun_xf 阅读(57) 评论(0) 推荐(0) 编辑

2024年8月26日

Chrome浏览器控制台有用的命令

摘要: Chrome调试 某元素上到底绑定了哪些事件,控制台输入命令: 获取元素所有事件信息(等价于控制台的Event Listeners标签) getEventListeners(document.querySelector(".common_block > button")) 监控:获得元素触发的所有事 阅读全文

posted @ 2024-08-26 11:16 anjun_xf 阅读(69) 评论(0) 推荐(0) 编辑

2024年8月22日

js 实现alert提示功能

摘要: js 简单弹框toast JS 实现一个可拖动的DIV 阅读全文

posted @ 2024-08-22 10:44 anjun_xf 阅读(4) 评论(0) 推荐(0) 编辑

2024年7月27日

web前端学习路线图

摘要: web前端学习路线图应该包括以下几个阶段: 第一阶段:基础入门阶段 HTML5+CSS3 基础结构布局,PC端和移动端。 JavaScript 基础内容,如数据类型、函数、数组等。 JavaScript 高级内容,如对象、原型链、闭包等。 JavaScript ES6 进阶,包括箭头函数、模块化等。 阅读全文

posted @ 2024-07-27 10:58 anjun_xf 阅读(63) 评论(0) 推荐(0) 编辑

2024年4月27日

js调整div顺序

摘要: js调整div顺序并保留div原有事件等 <div class="my_tabs"> <div class="el-tabs__nav-scroll"> <div class="el-tabs__nav"> <div class="el-tabs__item is-active">AAAA</div 阅读全文

posted @ 2024-04-27 13:44 anjun_xf 阅读(70) 评论(0) 推荐(0) 编辑

2024年4月23日

html5 postMessage解决跨域、跨窗口消息传递

摘要: html5 postMessage解决跨域、跨窗口消息传递 、 更多 1.html <html> <head> <title>Post Message</title> </head> <body> <div style="width:200px; float:left; margin-right:2 阅读全文

posted @ 2024-04-23 08:17 anjun_xf 阅读(10) 评论(0) 推荐(0) 编辑

2024年4月17日

通过前端事件对象获得控件所在页面html

摘要: //输入框获取焦点事件 function handleInputFocus() { console.log('handleInputFocus 2', event); let pgHtml = $(event.target).prop('ownerDocument').body.innerHTML; 阅读全文

posted @ 2024-04-17 16:12 anjun_xf 阅读(3) 评论(0) 推荐(0) 编辑

导航

TOP
点击右上角即可分享
微信分享提示