ajax中$.post请求出现栈溢出Uncaught RangeError: Maximum call stack size exceeded错误

ajax中$.post请求出现
Uncaught RangeError: Maximum call stack size exceeded栈溢出错误
可以参考

http://blog.csdn.net/dong123dddd/article/details/22160095

如多处使用数据使用相同id,如图 中标签id username

ajax中$.post请求出现栈溢出Uncaught RangeError: Maximum call stack size exceeded错误

与下图中的标签id username 一致
ajax中$.post请求出现栈溢出Uncaught RangeError: Maximum call stack size exceeded错误

则在post请求中设置
ajax中$.post请求出现栈溢出Uncaught RangeError: Maximum call stack size exceeded错误
设置一个变量获取username.val()的值;
val()是返回属性value对应的值,即username文本框的输入值
在使用window.location.href=”*/“跳转页面;