style="position: absolute; top: 661px; left: 1290px; transform-origin: center bottom; z-index: 2080;"
这句代码我现在想要获取到top: 661px这段,用typeof检测该句为object,但是转字符串,转数组,split()都试过了拿不到,各位帮忙看看
style="position: absolute; top: 661px; left: 1290px; transform-origin: center bottom; z-index: 2080;"
这句代码我现在想要获取到top: 661px这段,用typeof检测该句为object,但是转字符串,转数组,split()都试过了拿不到,各位帮忙看看
let el= document.getElementsByClassName('elPopoverClass')[0];
console.log('el:>> ', el.style.top);