banner
指数爆炸

指数爆炸

我做了对饭 !
github
bilibili

Disadvantages of using Vue

Still inevitably need to use js, DOM operations#

For example, Vue cannot add attributes to a <div> that only has an id attribute, and still needs to use js syntax

The concept of data returned by the ref() function is different in function and <template> tags#

<script setup>
import { ref } from "vue";
const ind = ref(0);

function add(){
  ind.value++;  // Here ind must be added with .value
}
</script>

<template>
  <p>{{ind}}</p>  // Here ind does not need to be
</template>
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.