<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body > <div id="app"> <button @click="changeColor">上色</button> <button @click="changeSize">设置字体</button> <div class="pre">内容为: { {content}}</div> <div class=" after" @click="reverseStr" v-bind:style="str">反转后内容为: { {reverseContent}}</div> <div class="total">反转前内容为 { {content}} ,反转后内容为 { {reverseContent}} </div> </div> <script src
作业vue练习
最新推荐文章于 2024-06-17 09:35:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)