摘要: 自行回顾所用 setTimeout() setTimeout() 是一个 JavaScript 函数,它用于在特定的时间后执行一段代码。这个函数需要两个参数:一个是要执行的函数,另一个是延迟的毫秒数 setTimeout(() => { ... }, delay) 中的 delay 是延迟的毫秒数, 阅读全文
posted @ 2023-12-06 14:06 朱呀朱~ 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 在 Vue 中,使用 ref 函数创建响应式的数据: 对象初始化: const addGoodsDate = ref({}); const addGoodsDate = ref({ name: '', price: 0 }); 数组初始化: const appGoodsList = ref([]); 阅读全文
posted @ 2023-12-06 14:05 朱呀朱~ 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 标签内属性形式 在 Vue 中,v-xx、@xx 和 :xx 是不同的语法形式,具有不同的用途和语义 v-xx 形式:这是用于注册或使用 Vue 提供的内置指令或自定义指令。v- 是 Vue 指令的前缀,后面跟着指令的名称 例如,内置指令:v-if 可以根据条件控制元素的显示和隐藏,v-for 可以 阅读全文
posted @ 2023-12-06 14:05 朱呀朱~ 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 下述代码会报错: Extraneous children found when component already has explicitly named default slot. These children will be ignored. <el-table-column prop="go 阅读全文
posted @ 2023-12-06 14:04 朱呀朱~ 阅读(298) 评论(0) 推荐(0) 编辑