次のコードは、この特定の方法で設定され、長方形の幅の属性を設定するとポリラインと同じであるか、それを変更する必要があるかを知っていますか?
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" );
}