简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
简单数据ref复杂数据reactive使用方法:在useCount.js中引用ref、reactive导出useCount方法在useCount方法中定义data、methods,并return也没需要的data、methodsvue组件中引入useCount.jssetup中return导入的data、methodstemplate中使用data、methods// useCount.jsimp
创建文件useMouse.js从vue模块引入onMounted,ref在onMounted中定义方法import {onMounted, ref} from 'vue'export default function useMouse() {let x = ref(0)let y = ref(0)onMounted(() => {window.addEventListener('mousem
问题:在使用create-vite-app vue3-camp创建项目时失败,报错如下:/usr/local/lib/node_modules/create-vite-app/node_modules/fs-extra/lib/mkdirs/make-dir.js:85} catch {^SyntaxError: Unexpected token {at createScript (vm.js:8
创建文件useMouse.js从vue模块引入onMounted,ref在onMounted中定义方法import {onMounted, ref} from 'vue'export default function useMouse() {let x = ref(0)let y = ref(0)onMounted(() => {window.addEventListener('mousem