0
我知道下面的代码会以这种特殊的方式设置说矩形宽度的set属性对于折线是相同的还是你必须改变它?用折线点设置属性
function newer() {
document.getElementById("rectangle").setAttribute('width',"70");
}
它会像以前的折线代码一样,还是会用其他方式?
function new() {
document.getElementById("polyline1").setAttribute('points', "0,0 200,0 200,200 100,200 100,100 0,100 0,0");
}