上一页 1 2 3 4 5 6 7 ··· 11 下一页

2022年9月20日

怎么知道页面表单是否改动的通用方法

摘要: 怎么知道页面表单是否改动的通用方法 async mounted() { this.SetInputChange(document.querySelectorAll("input"));//所有input控件注册keydown事件 } /** * input输入字符则视为页有变动 * @param i 阅读全文

posted @ 2022-09-20 08:39 anjun_xf 阅读(44) 评论(0) 推荐(0) 编辑

2022年8月20日

CSS选择器

摘要: CSS 选择器参考手册 :CSS 元素选择器 容易混淆 后代选择器 <style type="text/css"> h1 em {color:red;} </style> <h1>This is a <em>本处变红</em> heading</h1> 子元素选择器 <style type="tex 阅读全文

posted @ 2022-08-20 11:25 anjun_xf 阅读(19) 评论(0) 推荐(0) 编辑

2022年8月17日

a菜单点击标红,其他标黑代码

摘要: <script> let aList = document.querySelectorAll('a'); console.log(aList); for (let index = 0; index < aList.length; index++) { const element = aList[in 阅读全文

posted @ 2022-08-17 14:16 anjun_xf 阅读(19) 评论(0) 推荐(0) 编辑

axios下载指定文件

摘要: let url='http://192.18.0.12/a/123.xls' axios.get( url, { params: data, responseType: 'blob' } ).then(res => { this.loading = false; const content = re 阅读全文

posted @ 2022-08-17 09:34 anjun_xf 阅读(238) 评论(0) 推荐(0) 编辑

2022年8月15日

元素设置背景图片

摘要: 背景图片 background属性 background-color 背景颜色 background-image: url('i3.png') 图片 background-size 图片大小 background-repeat 平铺方式 background-position 图片位置 例子 /*图 阅读全文

posted @ 2022-08-15 15:07 anjun_xf 阅读(28) 评论(0) 推荐(0) 编辑

2022年8月7日

什么是闭包?

摘要: 什么是闭包? 一天老板要求小李,实现一个函数,每执行一次输出就累计减1。 小李第一天完成任务后给老板看。 老板立刻说:全局变量a任意函数都可使用到,会污染环境。 于是就有了第二天写法。闭包里变量可避免变量污染。 闭包满足4个条件: 1、有函数嵌套 2、内部函数引用外部函数变量 3、返回值是函数 4、 阅读全文

posted @ 2022-08-07 16:27 anjun_xf 阅读(17) 评论(0) 推荐(0) 编辑

2022年7月23日

C# websocket类库Fleck学习

摘要: 前端:可以用这个篇介绍的代码,详解JS WebSocket断开原因和心跳机制 后端:winform程序编译成控制台程序 using Fleck; public partial class Form1 : Form { public Form1() { InitializeComponent(); S 阅读全文

posted @ 2022-07-23 16:20 anjun_xf 阅读(672) 评论(0) 推荐(0) 编辑

2022年7月1日

Promise例子

摘要: let p = new Promise((resolve,reject)=>{ setTimeout(()=>{ let n=rand(1,100); if(n<=30){ resolve(n);//将Promise设为 成功 }else{ reject(n);//将Promise设为 失败 } } 阅读全文

posted @ 2022-07-01 15:07 anjun_xf 阅读(51) 评论(0) 推荐(0) 编辑

2022年6月16日

fiddler常用功能笔记

摘要: 1、开启fiddler,然后浏览网页。fiddler会实时记录访问的所有url。 2、选中一个url右键,“重放”,“补发多次”(自动执行指定次数) 3、调慢网速:规则 》 性能设置 》 模拟慢速网络 4、Filters标签可以过滤指定ip 阅读全文

posted @ 2022-06-16 15:55 anjun_xf 阅读(30) 评论(0) 推荐(0) 编辑

2022年4月21日

博客园代码实现折叠

摘要: 如下在markdown中实现 标题部分 ```css background-image: url(images/logo.png); ``` 阅读全文

posted @ 2022-04-21 11:32 anjun_xf 阅读(51) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 11 下一页

导航

TOP