g***@163.com
g***@163.com
  • 发布:2025-11-14 16:21
  • 更新:2025-11-14 16:21
  • 阅读:40

vue2项目,app.vue的模板里面有变量,没生效,代码热更新才会生效?

分类:uni-app

<template>
<view class="app app2" id="app">{{testA}}</view>
</template>
<script>
export default {
data() {
return {
testA: "123456"
}
}
}
</script>

这个肯定是生效的了,class="app app2" 已经可以展示出来,testA的值没展示出来

2025-11-14 16:21 负责人:无 分享
已邀请:

要回复问题请先登录注册