上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 介绍 Less 是 CSS 的预处理语言之一,为 CSS 增添了变量、Mixin、函数等特性,使CSS更易于维护扩展。 嵌套(Nesting) .header { .navgation: { font-size: 30px; } } 编译结果: .header .navgation: { font- 阅读全文
posted @ 2023-02-21 15:53 时光凉忆 阅读(351) 评论(0) 推荐(0)
摘要: 配置用户代码片段 文件 → 首选项 → 配置用户代码片段 比如配置一个vue3的代码片段: { "vue3-code": { "prefix": "vue3", "body": [ "<template>", " <div></div>", "</template>", "", "<script l 阅读全文
posted @ 2023-02-15 11:10 时光凉忆 阅读(62) 评论(0) 推荐(0)
摘要: 使用nvm管理node版本,动态切换不同版本的node 1. 下载nvm安装包 下载地址,点这里进行下载 往下拉,选择 nvm-setup.zip 安装包 2. 安装nvm 注: 安装nvm之前,卸载现有的node,否则会有冲突 2.1 解压安装 2.2 选择nvm安装路径 2.3 选择NodeJS 阅读全文
posted @ 2023-02-03 15:07 时光凉忆 阅读(633) 评论(0) 推荐(0)
摘要: TypeError: vite.defineConfig is not a function 执行命令:npm install @vitejs/plugin-vue -D config里面配置代码: import vue from '@vitejs/plugin-vue' export defaul 阅读全文
posted @ 2023-02-01 16:38 时光凉忆 阅读(2435) 评论(0) 推荐(0)
摘要: 父传子 说明:父组件将数据绑定在组件标签上;子组件props接收 父组件: <template> <Child :msg="msg" /> </template> <script setup> import Child from './child.vue' import { ref } from ' 阅读全文
posted @ 2023-02-01 11:21 时光凉忆 阅读(547) 评论(0) 推荐(0)
摘要: 如何创建vue3项目 基于 vue 脚手架 npm i @vue/cli -g vue create <project-name> cd <project-name> npm run serve 基于 vite 创建项目 // npm npm init vite-app <project-name> 阅读全文
posted @ 2023-01-30 15:29 时光凉忆 阅读(43) 评论(0) 推荐(0)
摘要: 使用函数返回表单,使用 Object.assign 重置表单数据 <script setup> import { reactive } from 'vue' const createFormData = () => { return { username: '', sex: 0, age: 16 } 阅读全文
posted @ 2023-01-30 15:14 时光凉忆 阅读(2625) 评论(0) 推荐(0)
摘要: js 类型分为两种:基本数据类型和复杂数据类型 基本数据类型主要有:number、string、boolean、null、undefined、symbo(es6新增)、BigInt(es10新增) ts 作为 js 的超集,是依附 js 的,有着 js 的所有特性。ts 独有的数据类型:any、vo 阅读全文
posted @ 2023-01-12 17:10 时光凉忆 阅读(158) 评论(0) 推荐(0)
摘要: 置顶 1、在你成功之前。没有人会对你的努力感兴趣 2、当你坚持不下去的时候,意志力会带你杀出重围 3、如果自己不够强大,就暂时把自己藏起来,去努力的改变自己。在无人问津的地方历练,在万众瞩目的地方出现(意林) 4、天下的好事都需要慢慢磨,先立足于慢而不败,才能快。最快的成长,就是慢慢来(意林) 5、 阅读全文
posted @ 2022-11-09 17:55 时光凉忆 阅读(96) 评论(0) 推荐(1)
摘要: mouseover 和 mouseenter mouseenter不会冒泡,而mouseover会冒泡 mouseover:指针进入事件监听的元素内 或者 其他的子元素内 都会触发mouseover mouseenter:指针进入元素内,会触发mouseenter mouseout 和 mousel 阅读全文
posted @ 2022-11-07 10:26 时光凉忆 阅读(526) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页