上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 44 下一页
摘要: 父元素传递给子元素的数据,子元素使用defineProps进行接收 //父元素 <template> <div class="box"> <!-- 子组件引用 --> <v-child msg='我给子元素带的一段话'></v-child> </div> </template> ​ ​ //子元素 阅读全文
posted @ 2023-03-27 16:39 Felix_Openmind 阅读(295) 评论(0) 推荐(0)
摘要: 一个接口允许存在任意的属性 interface IPerson { name: string; age: number; userBio?: string; [propName: string]: any; } let wangzz: IPerson = { name: 'wangzz', age: 阅读全文
posted @ 2023-03-26 23:48 Felix_Openmind 阅读(513) 评论(0) 推荐(0)
摘要: .menu-box overflow-y: scroll height 100% .menu-box::-webkit-scrollbar { display: none; } 参考连接: https://www.cnblogs.com/heleiya/p/13125946.html 阅读全文
posted @ 2023-03-24 18:08 Felix_Openmind 阅读(45) 评论(0) 推荐(0)
摘要: const programmerOutput = [ { name: "Wangzz", outPrice: 112.23, }, { name: "Wangxx", outPrice: 431.223, }, { name: "Wangio", outPrice: 10.23, }, { name 阅读全文
posted @ 2023-03-24 14:49 Felix_Openmind 阅读(90) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/Amnesiac666/article/details/122060057 ~(波浪号):A ~ B表示选择A标签后的所有B标签,但是A和B标签必须有相同的父元素。 ~(加号)加号又被称作兄弟选择器。A+B表示选择紧邻在A后面的B元素,且A和B必须拥 阅读全文
posted @ 2023-03-23 09:50 Felix_Openmind 阅读(1761) 评论(0) 推荐(0)
摘要: import React, { Component } from 'react' import ReactDOM from 'react-dom/client' import { nanoid } from 'nanoid' const root = ReactDOM.createRoot(docu 阅读全文
posted @ 2023-03-22 14:44 Felix_Openmind 阅读(39) 评论(0) 推荐(0)
摘要: let userList = [ { name: "wangzz", code: '001', age: 24 }, { name: "wangxx", code: "002", age: 25 }, { name: "wangdd", code: "003", age: 26 }, { name: 阅读全文
posted @ 2023-03-21 19:36 Felix_Openmind 阅读(41) 评论(0) 推荐(0)
摘要: => 要么 .abc, .xyz { margin-left:20px; width: 100px; height: 100px; } => 要么 a.abc, a.xyz { margin-left:20px; width: 100px; height: 100px; } => 要么 a { ma 阅读全文
posted @ 2023-03-21 10:31 Felix_Openmind 阅读(18) 评论(0) 推荐(0)
摘要: // 导入React、React-DOM // React负责创建React元素 - 虚拟DOM // ReactDOM负责渲染React元素 // JSX - 插值表达式 // 表达式 // 1. 变量 // 2. 基本数据类型:string、number、boolean、undefined、nu 阅读全文
posted @ 2023-03-20 14:01 Felix_Openmind 阅读(23) 评论(0) 推荐(0)
摘要: import './index.css' import avatar from './images/avatar.png' import React from 'react' import { v4 as uuid } from 'uuid' // 时间格式化 function formatDate 阅读全文
posted @ 2023-03-19 19:22 Felix_Openmind 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 44 下一页
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}