如代碼function(dx, dy){ rect.attr({x: orig_x+dx,y: orig_y+dy, fill:"orange"});
},function(x,y){
orig_x=+rect.attr("x");
orig_y=+rect.attr("y"); rect.attr({fill:"orange"});
},function(){ rect.attr({fill:"blue"});
}
js中的=+表達(dá)式是什么意思
慕仙森
2018-09-03 13:19:36