Skip to content

热身

大概就是让你熟悉一下Vue.js的渲染,把页面渲染的Hello World改成msg就可以了,这里

题目要求和代码

vue
<script setup>
import { ref } from "vue"
const msg = ref("msg")
</script>

<template>
  <div>
    <!-- 页面的期望输出是Hello World -->
    <h1>msg</h1>
  </div>
</template>

解答

解答地址

diff
<script setup>
import { ref } from "vue"
- const msg = ref("Hello World")
+ const msg = ref("msg")
</script>

视频

文明其精神,野蛮其体魄