会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
慕斯undefined
博客园
首页
新随笔
联系
管理
订阅
2022年6月1日
vite
摘要: 图片引入 components/img-import // 在组件中使用<template> <div> <img src="../assets/logo.png" /> <img :src="getImageUrl('logo.png')" /> <img :src="$getAssetsFile
阅读全文
posted @ 2022-06-01 11:55 慕斯undefined
阅读(236)
评论(0)
推荐(0)
2022年1月7日
@vueuse/core中api记录
摘要: useIntervalFn <template> <div> <p>{{ word }}</p> <button v-if="isActive" class="orange" @click="pause"> Pause </button> <button v-if="!isActive" @clic
阅读全文
posted @ 2022-01-07 18:01 慕斯undefined
阅读(1433)
评论(0)
推荐(0)
2021年4月21日
编写常见的js题
摘要: // 菜单/树类型转化 var arr = [ {id: 1, name: '部门1', pid: 0}, {id: 2, name: '部门2', pid: 1}, {id: 3, name: '部门3', pid: 1}, {id: 4, name: '部门4', pid: 3}, {id: 5
阅读全文
posted @ 2021-04-21 18:03 慕斯undefined
阅读(72)
评论(0)
推荐(0)
2021年3月8日
react-native
摘要: 初始化安装一些依赖后... Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. // mac 本机版本 maOS B
阅读全文
posted @ 2021-03-08 10:24 慕斯undefined
阅读(107)
评论(0)
推荐(0)
2021年3月1日
interview web
摘要: 性能优化 1.减少请求数量 2.减小资源大小 3.优化网络连接 4.优化资源加载 5.减少重绘回流 6.性能更好的API 7.webpack优化 页面需要渲染10万条数据? window.requestAnimationFrame() 告诉浏览器——你希望执行一个动画,并且要求浏览器在下次重绘之前调
阅读全文
posted @ 2021-03-01 09:56 慕斯undefined
阅读(71)
评论(0)
推荐(0)
2021年2月28日
浏览器缓存
摘要: 缓存定义: 浏览器在本地磁盘上将用户之前请求的数据存储起来,当访问者再次需要数据无需再次发送请求,直接从浏览器本地获取数据 好处: 1.减少请求的个数 2.节省带宽,避免浪费不必要的网络资源 3.减轻服务器压力 4.提高浏览器网页的加载速度,提高用户体验 缓存分类: 强缓存 1.不会向服务器发送请求
阅读全文
posted @ 2021-02-28 23:01 慕斯undefined
阅读(73)
评论(0)
推荐(0)
2020年4月30日
uniapp
摘要: ~ 设备相关 uni.onNetworkStatusChange(function(res){ 判断网络状态 console.log(res.isConnected) console.log(res.networkType) }) isConnected Boolean 当前是够有网路连接 netw
阅读全文
posted @ 2020-04-30 17:35 慕斯undefined
阅读(374)
评论(0)
推荐(0)
2020年4月27日
模块化
摘要: 1.commonjs 模块输出的是一个值的拷贝 ES6模块输出的是值的引用 2.commonjs模块是在运行是加载 ES6模块是在编译时加载
阅读全文
posted @ 2020-04-27 15:00 慕斯undefined
阅读(115)
评论(0)
推荐(0)
2020年4月20日
promise应用
摘要: Promise 是用来管理异步编程的,它本身不是异步的 多个请求结果合并在一起 一个页面有多个请求,我们需要所有的请求都返回数据后,再一起处理渲染 合并请求结果并处理错误 有时候页面挂掉了,可能因为接口异常导致,或许只是一个无关紧要的接口挂掉了。那么一个接口挂掉了为什么会导致整个页面无数据呢?Pro
阅读全文
posted @ 2020-04-20 14:03 慕斯undefined
阅读(142)
评论(0)
推荐(0)
2020年4月15日
vue插件
摘要: 添加全局mixin方法 export default { install(Vue, options) { Vue.mixin({ methods: { greetingFn() { console.log('greeting'); } } }); }, } mixin代表混合的意思,我们可以全局注册
阅读全文
posted @ 2020-04-15 15:29 慕斯undefined
阅读(153)
评论(0)
推荐(0)
下一页
公告