这样写之出来一个0,没有出来bar

news/2024/7/10 1:57:38 标签: vue
<template>
  <title>陈尼克</title>
  <div id="app">
     {{ count }} {{ object.foo }}
  </div>
</template>

<script>
//import { defineProps, reactive } from 'vue'

import { createApp, ref, reactive } from 'vue';
//const { createApp, ref, reactive } = Vue;
//const App = {
  export default {
  setup() {
    const count = ref("0")
    const object = reactive({
      object: "foo",
    });
    return {
      count,
      object,
    };
  },
};
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>

这样就出来了,我也不知道怎么出来的,object与foo与bar啥关系

<template>
  <title>陈尼克</title>
  <div id="app">
     {{ count }} {{ object.foo }}
  </div>
</template>

<script>
//import { defineProps, reactive } from 'vue'

import { createApp, ref, reactive } from 'vue';
//const { createApp, ref, reactive } = Vue;
//const App = {
  export default {
  setup() {
    const count = ref("0")
    const object = reactive({
      foo: "bar",
    });
    return {
      count,
      object,
    };
  },
};
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>

http://www.niftyadmin.cn/n/957724.html

相关文章

【SpringBoot实战】分布式定时任务锁Shedlock

在我们业务开发过程中&#xff0c;经常会有需求做一些定时任务&#xff0c;但是由于定时任务的特殊性&#xff0c;以及一些方法的幂等性要求&#xff0c;在分布式多节点部署的情况下&#xff0c;某个定时任务只需要执行一次。 1. 背景介绍 ShedLock(https://github.com/lukas…

怎么改成1 foo呢?

改得不对 <template><title>陈尼克</title><div id"app">{{ count }} {{ object.foo }}</div> </template><script> //import { defineProps, reactive } from vueimport { createApp, ref, reactive } from vue; //cons…

keras 预测采坑

训练数据集如果经过了 # x_test x_test.astype(float32) # x_test / 255 处理&#xff0c; 预测用数据也要经过同样的处理....

计时器setTimeout()方法的用法,怎样改变成1 foo

<template><title>陈尼克</title><div>{{ count }} {{ object.foo }}</div> </template><script> //import { defineProps, reactive } from vue//import { createApp, ref, reactive } from vue; import { ref, reactive } from vu…

keras预测函数采坑实录

使用两种方法构建模型&#xff0c;一种是如下所示方法&#xff0c;构建一个VGG16网络&#xff1a; model Sequential()model.add(Conv2D(32, (3, 3), strides(1, 1), input_shape(299, 299, 3), paddingsame, activationrelu,kernel_initializeruniform))model.add(Conv2D(32,…

如何获取用户的微信openid

如何获取用户的微信openid 如何获取用户的微信openid &#xff08;1&#xff09;首先登陆微信公众号后台&#xff08;确保你有登陆微信后台的权限才可以哦&#xff09;&#xff08;2&#xff09;登陆后点击左侧“用户管理”&#xff0c;然后找到你要查的用户&#xff0c;右击头…

keras yolov3 Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED

训练、测试Tensorflow、Keras代码时&#xff0c;出现could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED、error retrieving driver version: Unimplemented: kernel reported driver version not implemented on Windows、could not destroy cudnn handle: CUDNN_S…

java实现微信公众号的模板消息推送

java实现微信公众号的 文章目录 前言 一、什么是模板消息 二、获取模板ID 三、获取access_token 四、发送消息 五、完整的代码 总结 前言 最近做项目时需要用到公众号的模板消息&#xff0c;所以在这里记录分享一下实现过程 一、什么是模板消息 ↓↓↓↓ 官方文档 微信公众号…