我想问下这俩种向servlet中提交数据的方式有什么区别,那种更快?:
(1)document.getElementById("imgmap").src="maptest?toolType=2" + "&ptx=" + firx;
(2)document.all.imgmap.src="maptest?toolType=2" + "&ptx=" + firx;
maptest是servlet,这俩种方式是不是都是局部刷新,只刷新imgmap这个div,不会出现整个页面刷新的情况?哪种快?
谢谢解答!