日期:2014-05-16  浏览次数:20340 次

js 获得form表单中的action
在IE7中document.getElementById('form').action=url会出错。

解决办法 document.getElementById('form').attributes['action'].value=url

这样就解决了。