# removeStyle
移除 style 属性中某一项属性
import { removeStyle } from '@hui-pro/utils';
removeStyle(node, propKey);
# API
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
node | DOM 元素节点 | Element | - | - |
propKey 可选 | 需要移除的属性名,不填则移除整个 style 属性 | String | - | - |
← position scrollLeft →
移除 style 属性中某一项属性
import { removeStyle } from '@hui-pro/utils';
removeStyle(node, propKey);
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
node | DOM 元素节点 | Element | - | - |
propKey 可选 | 需要移除的属性名,不填则移除整个 style 属性 | String | - | - |
← position scrollLeft →