problem description
vue v-if,jsdiv,setAttributev-if,
the environmental background of the problems and what methods you have tried
create div, dynamically through js, and then bind div to VMI if to add judgment conditions. True and false, can be seen in html but not hidden
related codes
/ / Please paste the code text below (do not replace the code with pictures)
var newDiv =document.createElement("div")
newDiv.setAttribute("v-if",pagedata[i]._Id===this.showPageBox)
what result do you expect? What is the error message actually seen?
is there a way to control