vue.js中拼接字符串的方法:首先在data中定义变量,代码为【data(){return{a: A}}】;然后通过按钮点击实现字符串和变量a的拼接,代码为【<button @click=showMsg><button