<template><div> <text @click="change" style="font-size:50px">click</text> <div> <text v-bind:class="{active: isActive}">class變換</text> </div></div></template><style>.active{background-color:red}</style><script>export default { data:function() { return { isActive:true, }}, methods:{ change:function(){ this.isActive=!this.isActive } }}在weex中動態切換樣式,電腦游覽器中預覽有效果,但在手機playground中點擊卻沒有反應,請問這是什么問題?
- 2 回答
- 0 關注
- 1003 瀏覽
添加回答
舉報
0/150
提交
取消