标签:set for char 3.3 tps before style hide code
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Vue </title> <script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script> </head> <body> <div id="app"> <p>{{ message }}</p> <button v-on:click="clickfunc">点击</button> </div> <script> new Vue({ el:‘#app‘, data:{ message:‘before‘ }, methods:{ clickfunc:function () { this.message=‘after‘ } } }) </script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="app"> <p id="pp">before</p> <button id="bt">点击</button> </div> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script> <script> $(‘#bt‘).click(function () { $(‘#pp‘).text(‘after‘); }) </script> </body> </html>
标签:set for char 3.3 tps before style hide code
原文地址:https://www.cnblogs.com/infaaf/p/9589560.html