跳至主要內容

vuedemo

brinishness...小于 1 分钟Vuevue

vuedemo

一个 Vue Option 演示
<template>
  <div class="box">
    <code>vuepress-theme-hope</code> is
    <span @click="handler">{{ message }}</span
    >!
  </div>
</template>
<script>
export default {
  data: () => ({ message: "powerful" }),
  methods: {
    handler() {
      this.message = "very " + this.message;
    },
  },
};
</script>
<style>
.box span {
  color: red;
}
</style>
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.5