摘要: 1. setup函数 vue单页面使用到的变量和方法都定义在setup函数中,return后才能被页面引用 export default { setup(){ const name = '张三' const person = {name,age:30} function goWork(){ cons 阅读全文
posted @ 2023-12-18 16:55 yujiabo 阅读(3) 评论(0) 推荐(0) 编辑