会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
深海里的星星i
博客园
首页
新随笔
联系
管理
上一页
1
2
3
4
5
6
7
···
19
下一页
2024年9月2日
[vue] 大数据优化之虚拟滚动
摘要: <template> <div class="container" ref="scrollRef" @scroll="scroll"> <div class="plc" :style="'height: ' + list.length * 60 + 'px;padding-top: ' + padd
阅读全文
posted @ 2024-09-02 11:11 深海里的星星i
阅读(85)
评论(0)
推荐(0)
2024年8月26日
[javascript] 使用 puppeteer 包模拟 chrome 自动化
摘要: npm i puppeteer const puppeteer = require('puppeteer'); function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } async function
阅读全文
posted @ 2024-08-26 14:45 深海里的星星i
阅读(39)
评论(0)
推荐(0)
2024年8月23日
js 实现代码雨效果
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" > <title>Document
阅读全文
posted @ 2024-08-23 11:59 深海里的星星i
阅读(75)
评论(0)
推荐(0)
2024年8月16日
js实现翻牌游戏
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" > <title>Document
阅读全文
posted @ 2024-08-16 13:38 深海里的星星i
阅读(42)
评论(0)
推荐(0)
2024年8月9日
四角光标跟随鼠标, 鼠标落在哪个图片上, 光标就跟随到哪张图片 (一种实现思路)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" > <title>Document
阅读全文
posted @ 2024-08-09 11:30 深海里的星星i
阅读(41)
评论(0)
推荐(0)
2024年7月9日
原生js简单模拟移动端下拉刷新
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" > <title>Document
阅读全文
posted @ 2024-07-09 10:23 深海里的星星i
阅读(22)
评论(0)
推荐(0)
2024年5月9日
"getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
摘要: 使用pinia时候遇到的问题 使用pinia store必须在 组件的 setup 里面 vue-router路由文件需要在路由钩子里面用 报错之前代码-- 把 const userStore = useUserStore() 放在了 router.beforeEach((to, from, nex
阅读全文
posted @ 2024-05-09 10:09 深海里的星星i
阅读(2309)
评论(0)
推荐(0)
2024年4月23日
js递归实现深拷贝
摘要: function getType(data) { return Object.prototype.toString.call(data).replace(']', '').substring(8) } function _clone(data, res) { const type = getType
阅读全文
posted @ 2024-04-23 11:33 深海里的星星i
阅读(96)
评论(0)
推荐(0)
2024年4月11日
js 大文件分片上传
摘要: html需要使用 服务器的方式打开, 推荐使用 vscode Live Server 插件, 否则 无法加载本地的 worker.js axios 和 spark-md5 自己去npmjs.com上找 index.html <!DOCTYPE html> <html lang="en"> <head
阅读全文
posted @ 2024-04-11 11:41 深海里的星星i
阅读(51)
评论(0)
推荐(0)
2024年4月9日
通过css变量和动画的延迟负值, 实现动画效果
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" > <title>Document
阅读全文
posted @ 2024-04-09 14:35 深海里的星星i
阅读(21)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
19
下一页
公告