It is best to use js to get the display value
Console shows nothing
This is the code
PHP中文网2017-05-18 10:58:07
const displayVal = document.defaultView.getComputedStyle(element[, pseudoElt]).display;
getComputedStyle
为情所困2017-05-18 10:58:07
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