It is best to use js to get the display value
Console shows nothing
This is the code
走同样的路,发现不同的人生
const displayVal = document.defaultView.getComputedStyle(element[, pseudoElt]).display;
getComputedStyle
I guess you want to get the expansion and contraction of the left menu? If it is Vue, you don’t need to spend so much time manipulating DOM elements, right? Just define a data control to show and hide it
getComputedStyle
I guess you want to get the expansion and contraction of the left menu?
If it is Vue, you don’t need to spend so much time manipulating DOM elements, right? Just define a data control to show and hide it