会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
石头记1
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
13
下一页
2022年7月22日
fetch
摘要: 拿到数据必须在response.text()之后,如果在{}里可以直接在第一个.then(data)拿到,如果没有在{}说明第一个then返回了值,在第二个then里的data拿 fetch('/admin/ArrivalMaster/WarehouseSelectList1').then((res
阅读全文
posted @ 2022-07-22 10:03 石头记1
阅读(92)
评论(0)
推荐(0)
2022年7月18日
js监听浏览器页面的关闭
摘要: ie、chrome、360:页面加载时执行unload();刷新时先执行onbeforeload(),新页面即将替换旧页面时onunload(),最后unload();关闭时执行onbeforeload(),再执行onunload().firefox:刷新时只执行onunload();关闭时只执行o
阅读全文
posted @ 2022-07-18 14:54 石头记1
阅读(7886)
评论(0)
推荐(0)
2022年7月1日
替代定时器的requestAnimationFrame
摘要: 动画 #status{ border:1px solid #ff9900; width:50px; height:100px; left:0; position: absolute; } <div id="status">123</div> let div = document.getElement
阅读全文
posted @ 2022-07-01 09:55 石头记1
阅读(112)
评论(0)
推荐(0)
2022年6月30日
canvas
摘要: <div><image id="box" src="https://www.baidu.com/img/flexible/logo/pc/result.png"></div> <canvas id="kkk" width="400" height="400"></canvas> let box =
阅读全文
posted @ 2022-06-30 15:04 石头记1
阅读(15)
评论(0)
推荐(0)
2022年6月15日
flex
摘要: display:flex; flex-direction 决定主轴的方向(即项目的排列方向) row(默认): 主轴水平方向,起点在左端 row-reverse: 主轴水平方向,起点在右端 column: 主轴垂直方向,起点在上边沿 column-reverse: 主轴垂直方向,起点在下边沿 fle
阅读全文
posted @ 2022-06-15 11:45 石头记1
阅读(129)
评论(0)
推荐(0)
uniapp路由 uni-simple-router
摘要: node_modules下的包uni-simple-router main.js import {router,RouterMount} from './router.js' Vue.use(router) router.js // router.js //小程序系列无法拦截原生tabbar及原生导
阅读全文
posted @ 2022-06-15 11:37 石头记1
阅读(921)
评论(0)
推荐(0)
2022年5月26日
uniapp拍照
摘要: <template> <view> <view style="margin-top: 20px;"> <button @click="xiaochengxu">小程序存图</button> </view> <view style="margin-top: 20px;"> <button @click
阅读全文
posted @ 2022-05-26 13:41 石头记1
阅读(22)
评论(0)
推荐(0)
2022年5月23日
复制图片,复制文字,下载图片
摘要: base64图复制到剪切板 谷歌和360浏览器只在https协议或本机操作localhost下有效,其他情况只能用document.execCommand("copy"),并且只能粘贴到word或excel中,不能粘贴到画图 var self = this if(self.curMuban.MBSL
阅读全文
posted @ 2022-05-23 14:54 石头记1
阅读(375)
评论(0)
推荐(0)
2022年4月29日
input的onkeyup
摘要: input type="text" onkeyup="this.value = this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''" 正数,保留两位小数 onkeyup="this.val
阅读全文
posted @ 2022-04-29 14:20 石头记1
阅读(1125)
评论(0)
推荐(0)
2022年4月25日
前端下载文件重命名
摘要: function getBlob(url,cb) { var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.responseType = 'blob'; xhr.onload = function() { if (xhr.st
阅读全文
posted @ 2022-04-25 17:12 石头记1
阅读(339)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
13
下一页
公告