摘要: 优先级 !important > 行内样式 > id选择器 > 类选择器 > 标签选择器 > 通配符选择器 > 继承 伪元素 ::before: 在父元素内容的最前面添加一个伪元素 ::after: 在父元素内容的最后面添加一个伪元素 必须设置content属性才能生效 伪元素默认是行内样式 Emm 阅读全文
posted @ 2023-11-03 11:28 蜻蜓点火 阅读(26) 评论(0) 推荐(0)
摘要: 在TS中,仅类型声明的一个缺点defineProps是它无法为 props 提供默认值。为了解决这个问题,withDefaults还提供了一个编译器宏,同时给出JS默认值的写法 <script setup lang="ts"> // ts写法 const props = withDefaults(d 阅读全文
posted @ 2023-02-21 08:58 蜻蜓点火 阅读(2371) 评论(0) 推荐(0)
摘要: 基本组件: xtype Class 描述 button Ext.Button 按钮 splitbutton Ext.SplitButton 带下拉菜单的按钮 cycle Ext.CycleButton 带下拉选项菜单的按钮 buttongroup Ext.ButtonGroup 编组按钮(Since 阅读全文
posted @ 2019-01-24 16:32 蜻蜓点火 阅读(382) 评论(0) 推荐(0)
摘要: var arr = [1,2,3]; var arr1 = JSON.stringify(arr); var arr2 = JSON.parse(arr1); 阅读全文
posted @ 2019-01-24 14:08 蜻蜓点火 阅读(161) 评论(0) 推荐(0)