js给元素同时赋值多个样式属性

const demo = document.querySelector("#demo");
Object.assign(demo.style, {
	opacity: '1',
	pointerEvents: 'auto'
});