One button in vue controls the display and hiding

single button controls display and hides

<template>
    <div>
        <div v-if="isshow">{{isshow}}</div>
        <button @click="change()"></button>
    </div>
</template>
<script>
    export default({
        name:"",
        data(){
            return{
                isshow:false,
                }
            },
        methods:{
            change:function(){
                this.isshow=!this.isshow
                }
        })
</script>

the above code can achieve a single control to show and hide, but I want to write this.isshowroomroomthis.isshow on the tag. How should I write it?

Jul.13,2022

<template>
    <div>
        <div v-if="isshow">{{isshow}}</div>
        <button @click="isshow = !isshow"></button>
    </div>
</template>

if it helps you, please upvote or adopt


< button @ click= "isshow =! isshow" > Click < / button >

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c21dc0-485eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c21dc0-485eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?