<!DOCTYPE html>
<html>
<div id="app">
</div>
<script src="https://unpkg.com/vue@next"></script>
<script>
const {
ref } = 'Vue'
const count = ref(1)
const plusOne = computed(() => count.value + 1)
console.log(plusOne
Uncaught TypeError: ref is not a function,应该怎么改?Uncaught Refere:computed is not defined(都已解决)
于 2022-03-04 09:10:51 首次发布