A story about a play button?

clipboard.png


::vue

clipboard.png

clipboard.png

now I want to add the function is to click the play button to hide, pause to show
I have tried to add subtracted classes to it, but it does not work, is there any good way to solve this problem?

Mar.07,2021

you can add a status value on your basis. For example, pauseBtnShow, is bound to this pause button, and you can switch according to your pause and playback status


.

bind a tag in data:

data:{
    visible: false
}
// 
this.visibleturevideo.pause()

htmlvisible

style control, this.isActive =! this.isActive;
html: < p vBind class= "{'f-btnActive':isActive}" >

code >
initialize state: isActive: false


you have a pasued attribute that can be used as a status flag to show it when it exists, otherwise it will be hidden (but there is a problem, how do you click if hidden? )

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-1e3f9dc-43ba4.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-1e3f9dc-43ba4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?