setAttribute()

添加指定的属性,并为其赋指定的值

this.sltLevelType.setAttribute("height", "100px");

猜你喜欢

转载自www.cnblogs.com/7q4w1e/p/9549585.html