摘要:
vue2中v-for的优先级高于v-if 所以是先执行v-for 再执行v-if (先v-for渲染出来的后又被v-if删除掉了,这样就会造成性能浪费) vue3中 v-if 的优先级高于 v-for 所以是先执行v-if 再执行v-for (如果dom元素不显示的话,就不会走该元素的v-for步骤 阅读全文
posted @ 2022-09-13 00:32
王二疯
阅读(526)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-09-13 00:26
王二疯
阅读(1342)
评论(0)
推荐(0)
摘要:
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router' // 静态导入 import index from './../components/index.vue' import notfoun 阅读全文
posted @ 2022-09-13 00:23
王二疯
阅读(189)
评论(0)
推荐(0)
摘要:
<template> <div> <div ref="msg">{{ message }}</div> <div>{{ message1 }}</div> <button @click="changeMessage">改变message</button> </div> </template> <sc 阅读全文
posted @ 2022-09-13 00:20
王二疯
阅读(55)
评论(0)
推荐(0)

浙公网安备 33010602011771号