报错有可能是action方法提交的不对。当用到js时,在js里用如下提交方法

var url ='提交路径';

window.location.url);< /span>

提交,就好了。