javascript - How to get the value of display in js? Or you can get it with vue@2.0
怪我咯
怪我咯 2017-05-18 10:56:07
0
2
573

It is best to use js to get the display value

Console shows nothing

This is the code

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
洪涛
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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!