Unexpected token u in JSON at position 0 解决 报这个错的一方面原因是,当你在取出存入的localStorage或者sessionStorage时,这个数据是Undefined,检查一下你在哪个地方存的这个数据,把解决了就OK了