let el = this.$refs[this.refName];
if (el) {
el.style.color = this.attr.background;
el.style.background = this.attr.color;
}
上述代码,在H5中正常,在android下提示
TypeError: Cannot set property 'color' of undefined
q***@163.com (作者)
感谢回复。
2022-07-12 13:38