baozhengrui

导航

上一页 1 2 3 4 5 6 ··· 12 下一页

2024年9月4日 #

十六进制转RGB ---颜色-color

摘要: ``` // 十六进制转RGB function hexToRgb(hex: string) { const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); return result ? [ parseInt(resu 阅读全文

posted @ 2024-09-04 17:47 芮艺 阅读(1) 评论(0) 推荐(0) 编辑

获取浏览器窗口大小

摘要: function getHeight(){ let height = document.documentElement.clientHeight || document.body.clientHeight || window.innerHeight; } onMounted(()=>{ const 阅读全文

posted @ 2024-09-04 17:28 芮艺 阅读(1) 评论(0) 推荐(0) 编辑

将一个时间段进行分割为每一天

摘要: function splitIntoDays(start ,end){ let days = []; let currentDay = []; while(currentDay <= end){ days.push(new Date(currentDay)); currentDay.setDate( 阅读全文

posted @ 2024-09-04 17:18 芮艺 阅读(3) 评论(0) 推荐(0) 编辑

dhtmlx - gantt---甘特图

摘要: 引入依赖 npm install dhtmlx-gantt@7.1.7 实例: <template> <div class="ganttShow"> <div class="common-query"> <div class="common-query-demo"> <span>产品名称</span 阅读全文

posted @ 2024-09-04 17:14 芮艺 阅读(7) 评论(0) 推荐(0) 编辑

vue路由传参接收以及传参对象为对象时的问题及解决--router

摘要: 场景: <div @click='toDetail'>查看详情</div> 路由传参不能直接传一个对象,需要使用JSON.stringify()方法将其转换成一个字符串,然后在其他页面接受的时候再使用JSON.parse()方法转换成一个对象 const router = useRouter() c 阅读全文

posted @ 2024-09-04 17:07 芮艺 阅读(32) 评论(0) 推荐(0) 编辑

2024年8月21日 #

nvm 使用及安装

摘要: https://blog.csdn.net/m0_73391179/article/details/137641808 阅读全文

posted @ 2024-08-21 16:39 芮艺 阅读(1) 评论(0) 推荐(0) 编辑

VUEX基础入门Store使用详解

摘要: 【1】vuex 是什么 github 站点: https://github.com/vuejs/vuex,在线文档: https://vuex.vuejs.org/zh-cn/ Vuex 是一个专为 Vue.js 应用程序开发的状态管理模式。它采用集中式存储管理应用的所有组件的状态,并以相应的规则保 阅读全文

posted @ 2024-08-21 15:10 芮艺 阅读(15) 评论(0) 推荐(0) 编辑

store vue 仓库的使用方法

摘要: 1. 项目介绍 store.js 是一个轻量级的 JavaScript 库,旨在封装浏览器的 localStorage 功能,以实现跨浏览器兼容的本地存储解决方案。它不需要依赖于 Cookie 或 Flash,提供简单易用的 API,使得开发者可以方便地进行键值对存储操作。 基础使用 以下是一些基础 阅读全文

posted @ 2024-08-21 14:49 芮艺 阅读(4) 评论(0) 推荐(0) 编辑

LocalStorage 的使用方法

摘要: LocalStorage 是一种 web 端的存储机制,它使得由 JavaScript 编写的网站或者应用可以无限期的在浏览器中存储并访问数据。什么是无限期呢?就是说存储在浏览器中的数据是会一直存在的,及时浏览器被关闭了也不会消失。 LocalStorage 的使用方法 要在你的 web 应用中使用 阅读全文

posted @ 2024-08-21 14:42 芮艺 阅读(24) 评论(0) 推荐(0) 编辑

解决errors and 0 warnings potentially fixable with the `--fix` option.问题

摘要: https://blog.csdn.net/weixin_45090657/article/details/129594201 阅读全文

posted @ 2024-08-21 11:12 芮艺 阅读(2) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 12 下一页