ajax获取后台数据出错parsererror

原因是dataType如果为json,返回的数据是text就会报错。

原文地址:https://www.cnblogs.com/codeDevotee/p/9855751.html