JS错误 Uncaught SyntaxError: Unexpected token u in JSON at position 0 乍一看这个错误感觉无从下手,其实很简单,这个错误是由于JSON.parse解析了undefined。 parse前记得判断下