ajax发送action时,action里try,catch的异常,怎么才能进入ajax里的error
改dataType为json。要不去掉服务器端try..catch。
error执行要服务器端返回非200状态,或者200状态dataType为json时返回了非标准json数据才会执行
在action不能return null回去,你要用response返回,当出错就会即行error的
http://blog.csdn.net/sun2015_07_24/article/details/50464084
你return了,所以进不去