会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吴百万
博客园
首页
新随笔
联系
订阅
管理
2023年2月17日
IntersectionObserver实现无限滚动,MutationObserver监听dom元素
摘要: IntersectionObserver 接口: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta na
阅读全文
posted @ 2023-02-17 10:09 吴百万
阅读(286)
评论(0)
推荐(0)
2023年2月7日
奇偶、循环冗余、海明校验码
摘要: 奇偶效验码:能检查奇数个为错,不能纠错。 例如:10011010 奇效验不通过 偶校验(偶数个1)通过. 循环冗余校验码:能检戳 不能纠错;采用模2运算。 例如:信息码 101001 二项式:x^3+x^2+1 (校验位数为二项式的最高次幂,这里也就是3,所以在信息码后面补充3个000,用来下面的计
阅读全文
posted @ 2023-02-07 10:33 吴百万
阅读(272)
评论(0)
推荐(0)
2022年12月5日
数据请求 ajax axios
摘要: let url = "https://www.fastmock.site/mock/39aa306dc9dec321fb0237a30b3040d2/api" // 使用jquery ajax 获取数据 $.ajax({ type:"get", //请求方式 url:url+"/newList",
阅读全文
posted @ 2022-12-05 10:11 吴百万
阅读(65)
评论(0)
推荐(0)
2022年4月21日
vue路由动态添加
摘要: 需求:根据登录的角色不一样,实现不同的路由展示,例如:超级管理员登录能访问所有菜单,普通用户登录就只能展示部分菜单。 1.首先在路由里面配置两份路由,一份静态的默认路由,例如登录页面,404页面 export const constantRoutes = [ { path: '/', redirec
阅读全文
posted @ 2022-04-21 22:16 吴百万
阅读(2849)
评论(0)
推荐(0)
2022年2月21日
js排序(冒泡排序,插入排序,快速排序,选择排序)
摘要: let a = [1,43,3,3213,12,12,3,2,1,212,32] // 插入排序 // function insertSort(arr){ // if(arr.length<=1){return arr} // for(let i=0;i<arr.length;i++){ // le
阅读全文
posted @ 2022-02-21 10:57 吴百万
阅读(75)
评论(0)
推荐(0)
2021年12月17日
纯js上传exsl文件
摘要: <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <title>JS读取和导出excel示例</title> <meta name="description" content="使用sheetjs读取和导出excel示
阅读全文
posted @ 2021-12-17 10:30 吴百万
阅读(142)
评论(0)
推荐(0)
2021年8月19日
vue react 调试工具安装
摘要: react : https://blog.csdn.net/Alice_44/article/details/119025989 vue :https://blog.csdn.net/qq_37682202/article/details/99934608 (最后一步不同版本可能不一样我的路径就是:
阅读全文
posted @ 2021-08-19 20:23 吴百万
阅读(51)
评论(0)
推荐(0)
2021年7月14日
vue路由配置(从0开始)
摘要: 1,首先在全局下安装路由 npm install vue-router --save 2,一般情况下我们都会把路由单独抽离出来,在src下面新建一个router.js 文件,或者新建一个router文件夹,然后在文件夹里面新建一个index.js 3,编写好对应的几个组件,然后在router.js里
阅读全文
posted @ 2021-07-14 18:21 吴百万
阅读(1711)
评论(0)
推荐(0)
2021年6月21日
uniapp小程序获取用户头像和信息
摘要: 1,获取用户信息(页面弹出授权框,获取头像和名称等等) 使用api: getUserProfile() 示例: html: <image class="image" :src="info.avatarUrl"></image> <view>{{info.nickName}}</view> <butt
阅读全文
posted @ 2021-06-21 15:35 吴百万
阅读(4317)
评论(0)
推荐(1)
2021年4月25日
nginx创建本地服务器和配置代理(解决跨域)
摘要: 1,下载nginx 2,解压后打开conf/nginx.conf 修改配置 server { listen 8841;#监听端口 server_name localhost;#代理服务地址 location / { #默认访问 root html; index index.html index.ph
阅读全文
posted @ 2021-04-25 17:29 吴百万
阅读(1761)
评论(0)
推荐(0)
下一页
公告