会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
丁少华
任何复杂的框架都是简单的知识组合并延伸的,所以学好基础知识才是最重要的。好高骛远,眼高手低,终究还是学的不精。
博客园
首页
联系
管理
上一页
1
···
29
30
31
32
33
34
35
36
37
···
61
下一页
2021年5月25日
根据Blob流(即后端的Stream文件类型格式)下载文件
摘要: 接口调用 先看看这个接口的返回值 前端处理 //根据文件后缀名来映射Blob Type const typeDic = { docx: 'application/msword', doc: 'application/msword', bin: 'application/octet-stream',
阅读全文
posted @ 2021-05-25 19:48 丁少华
阅读(2771)
评论(0)
推荐(0)
2021年5月23日
springBoot2.x启用https和兼容http
摘要: 前言之前我嫌弃tomcat(spring)项目,开启https麻烦,所以一直都是nginx代理为https。今儿突然不想了。在springBoot2.x的情况下,直接开启https,并兼容http方式(ws~wss)。废话不说上代码第一步先到运营上申请ssl证书。一般情况下,都会提供一年免费的。 第
阅读全文
posted @ 2021-05-23 21:50 丁少华
阅读(820)
评论(1)
推荐(1)
2021年5月19日
纯前端实现(摄像头)截屏
摘要: navigator-helper.js // 获取媒体设备 export const getUserMedia = () => { return new Promise((resolve,reject) => { navigator.getUserMedia({ audio: true, video
阅读全文
posted @ 2021-05-19 14:38 丁少华
阅读(777)
评论(0)
推荐(1)
2021年5月13日
h5/react表格元素拖动交换ondrop
摘要: 先看效果 再看代码utils.js import Mock from 'mockjs'; // mock老师们数据 const data = Mock.mock({ 'list|10-40': [{ 'id|+1': 1, name: '@cname' }] }) // 模拟获取老师接口 expor
阅读全文
posted @ 2021-05-13 10:09 丁少华
阅读(365)
评论(0)
推荐(0)
2021年5月7日
windows使用chrome调试ios webView
摘要: 包含safari和App如果安装失败,直接删除C:\Users\Administrator\scoop 重新安装即可 安装scoop windows下的安装源搜索工具,有点类似centos下的yum、ubuntu下的apt PowerShell下执行一下命令: Invoke-Expression (
阅读全文
posted @ 2021-05-07 14:20 丁少华
阅读(1262)
评论(0)
推荐(0)
2021年4月27日
页面上多个audio只播放一个
摘要: // ts版-vue private justPalyOne() { const audios = document.querySelectorAll("audio"); // 暂停函数 const pauseAll = (exclude: any): any => { audios.forEach
阅读全文
posted @ 2021-04-27 10:43 丁少华
阅读(828)
评论(0)
推荐(0)
2021年4月17日
阿里网盘分享
摘要: 阿里网盘说是2021年4月出分享功能,可这都4月中下旬了,也没个动静 好在网上找到一个油猴儿的阿里网盘分享扩展脚本 分享给大家脚本安装地址:https://bbs.tampermonkey.net.cn/thread-280-1-1.html 启动该插件后 右键该文件,打开菜单>查看详情,会多出 生
阅读全文
posted @ 2021-04-17 20:43 丁少华
阅读(1120)
评论(0)
推荐(0)
2021年4月10日
css3桃花随意飘落
摘要: 桃花随意飘落 css3 + js 不实用第三方类库 效果图 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <me
阅读全文
posted @ 2021-04-10 16:26 丁少华
阅读(278)
评论(0)
推荐(0)
2021年3月23日
axios的post请求formData
摘要: import qs from 'qs'; axios({ method: 'post', url: '/login', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, data: qs.stringify({name
阅读全文
posted @ 2021-03-23 10:57 丁少华
阅读(262)
评论(0)
推荐(0)
2021年3月17日
红米k30s/k40刷magisk面具+LSPosed+大圣净化
摘要: 解锁BL 这里查看官方教程即可 ,如果小米手机解锁bl遇到1004的错误,用洋大人的版本即可 需要注意,新机购买7天才能允许解锁! 提取boot 下载固件包,使用提取工具进行提取boot.img 固件下载1:https://xiaomirom.com 固件下载2:https://roms.miuie
阅读全文
posted @ 2021-03-17 00:29 丁少华
阅读(10736)
评论(0)
推荐(0)
上一页
1
···
29
30
31
32
33
34
35
36
37
···
61
下一页
公告