let d = this.$refs['line3']
d.setAttribute('style','background-color:pink')
d.style.setProperty('background-color','pink')
d.style.cssText = 'background-color:pink'
js中设置元素样式
于 2023-08-28 09:57:50 首次发布
let d = this.$refs['line3']
d.setAttribute('style','background-color:pink')
d.style.setProperty('background-color','pink')
d.style.cssText = 'background-color:pink'