会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaoyingZha
博客园
首页
新随笔
联系
订阅
管理
2023年9月22日
js 中 " + " 的使用
摘要: // 加法计算 const a1 = 2 + 2 // 4 let m1 = 5, m2 = '5' let n1 = 11, n2 = '11' let k1 = 70, k2 = '70' m1++ // 6 (等价于 m1 = m1 + 1) m1++ // 6 n1 += 1 // 12 (
阅读全文
posted @ 2023-09-22 10:21 YINGYAN
阅读(29)
评论(0)
推荐(0)
2023年7月11日
可视化大屏自适应
摘要: 示例项目 <template> <div ref="wrapRef" class="screen"> <div ref="screenRef" class="screen-inner"> <div class="screen-header">{{ title }}</div> <div class=
阅读全文
posted @ 2023-07-11 10:41 YINGYAN
阅读(59)
评论(0)
推荐(0)
2023年1月30日
封装用于循环播放展示一组内容的组件
摘要: <template> <div v-if="show" class="command-code" :style="{ color: color }"> <div class="command-code-box" ref="boxRef" :style="{ width: contentWidth }
阅读全文
posted @ 2023-01-30 17:27 YINGYAN
阅读(20)
评论(0)
推荐(0)
2022年11月23日
CSS应用梳理
摘要: 1. 文字溢出省略号 1.1 单行文字溢出: overflow: hidden; // 溢出隐藏 text-overflow: ellipsis; // 溢出用省略号显示 white-space: nowrap; // 规定段落中的文本不进行换行 1.2 多行文字溢出: overflow: hidd
阅读全文
posted @ 2022-11-23 09:19 YINGYAN
阅读(47)
评论(0)
推荐(0)
2022年10月26日
蓝牙数据应用示例
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
posted @ 2022-10-26 15:24 YINGYAN
阅读(71)
评论(0)
推荐(0)
2022年7月5日
在vue中使用lottie动画
摘要: 1、安装 lottie-web 包 npm i lottie-web -S 2、lottie动画json问价放入项目 3、在使用 lottie 动画的 .vue文件中引入 json文件及 lottie 包 import lottie from 'lottie-web' import * as anD
阅读全文
posted @ 2022-07-05 11:11 YINGYAN
阅读(1117)
评论(0)
推荐(0)
2022年6月9日
npm发布流程
摘要: 1、在 npm 官网注册账号(一定要验证邮箱地址) 2、创建目录 helper-vue-ts,进入目录 3、初始化 npm init,并指定入口文件 ./dist/helper-vue-ts.js 4、执行 tsc --init 生成 tsconfig.json 配置文件(需全局安装 typescr
阅读全文
posted @ 2022-06-09 16:00 YINGYAN
阅读(684)
评论(0)
推荐(0)
2022年6月6日
git忽略target等文件无效
摘要: git rm -r --cached . git add . git commit -m 'update .gitignore'
阅读全文
posted @ 2022-06-06 14:32 YINGYAN
阅读(198)
评论(0)
推荐(0)
2022年3月4日
Element.scrollIntoView() 元素滚动
摘要: 使用scrollIntoView方法,添加滚动行为。设置"smooth "属性实现平滑的滚动动画。 滚动到顶部 const scrollToTop = scrollEle => scrollEle.scrollIntoView({ behavior: "smooth", block: "start"
阅读全文
posted @ 2022-03-04 11:27 YINGYAN
阅读(858)
评论(0)
推荐(0)
2022年2月13日
CSS中 单位vw、vh、vmin、vmax的应用
摘要: vw、vh、vmin、vmax是相对单位。相对于视窗(viewport)的大小,单位类似百分百。 视窗:浏览器实际应用内容区域。 vw:视窗宽度百分比; vh:视窗高度百分比; vmin:vw和vh中较小的值; vmax:vw和vh中较大的值; vmin、vmax应用:移动端开发时,可让横屏和竖屏下
阅读全文
posted @ 2022-02-13 12:31 YINGYAN
阅读(563)
评论(0)
推荐(0)
下一页
公告