美文网首页
开发记录

开发记录

作者: Rokkia | 来源:发表于2018-02-10 14:47 被阅读23次

    遇到一个接口返回问题,返回的数据无法解析。像这个样。

    %3Ch3%3E%0D%0A%3C%2Fh3%3E%0D%0A%3Ch3%3E%0D%0A%09%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%E6%AD%A5%E9%AA%A41%EF%BC%9A%E7%94%B1%E4%BE%9B%E8%B4%A7%E5%95%86%E6%B7%BB%E5%8A%A0%3Cu%3E%3Ca+href%3D%22http%3A%2F%2Fsellerhelp.xunmall.com%2Fissue%2Fview%3Fid%3D64%22+target%3D%22_blank%22%3E%E8%B5%A0%E5%93%81%E5%88%86%E7%B1%BB%3C%2Fa%3E%3C%2Fu%3E%E5%92%8C%3Cu%3E%3Ca+href%3D%22http%3A%2F%2Fsellerhelp.xunmall.com%2Fissue%2Fview%3Fid%3D66%22+target%3D%22_blank%22%3E%E8%B5%A0%E5%93%81%E4%BF%A1%E6%81%AF%3C%2Fa%3E%E3%80%82%3C%2Fu%3E%3C%2Fspan%3E%0D%0A%3C%2Fh3%3E%0D%0A%3Cp%3E%0D%0A%09%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%3Cbr+%2F%3E%0D%0A%3C%2Fspan%3E+%0D%0A%3C%2Fp%3E%0D%0A%3Ch3%3E%0D%0A%09%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%E6%AD%A5%E9%AA%A42%EF%BC%9A%E7%94%B1%E4%BE%9B%E8%B4%A7%E5%95%86%E6%B7%BB%E5%8A%A0%3Cu%3E%3Ca+href%3D%22http%3A%2F%2Fsellerhelp.xunmall.com%2Fissue%2Fview%3Fid%3D73%22+target%3D%22_blank%22%3E%E8%B5%A0%E5%93%81%E6%B4%BB%E5%8A%A8%3C%2Fa%3E%3C%2Fu%3E%EF%BC%8C%E5%B9%B6%E6%8F%90%E4%BA%A4%E7%BB%99%E8%BF%90%E8%90%A5%E5%95%86%E5%AE%A1%E6%A0%B8%E3%80%82%3C%2Fspan%3E%3C%2Fspan%3E+%0D%0A%3C%2Fh3%3E%0D%0A%3Ch3%3E%0D%0A%09%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%E6%AD%A5%E9%AA%A43%EF%BC%9A%E7%94%B1%E8%BF%90%E8%90%A5%E5%95%86%E5%9C%A8%E4%BF%83%E9%94%80%E6%B4%BB%E5%8A%A8%26gt%3B%26gt%3B%E4%B9%B0%E8%B5%A0%E6%B4%BB%E5%8A%A8%26gt%3B%26gt%3B%E6%B4%BB%E5%8A%A8%E5%88%97%E8%A1%A8%E4%B8%AD%3Cu%3E%3Ca+href%3D%22http%3A%2F%2Fshop.xunmall.com%2Fagent%2FpromotionActivity%2Findex%22+target%3D%22_blank%22%3E%E5%AE%A1%E6%A0%B8%3C%2Fa%3E%3C%2Fu%3E%EF%BC%8C%E5%AE%A1%E6%A0%B8%E9%80%9A%E8%BF%87%E5%B0%B1%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E5%95%A6%E3%80%82%3C%2Fspan%3E%3C%2Fspan%3E+%0D%0A%3C%2Fh3%3E%0D%0A%3Ch3%3E%0D%0A%09%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%3Cbr+%2F%3E%0D%0A%3C%2Fspan%3E%3C%2Fspan%3E%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%E6%B3%A8%E6%84%8F%EF%BC%9A%E8%B5%A0%E5%93%81%E7%9A%84%E5%BA%93%E5%AD%98%E6%98%AF%E7%B4%AF%E8%AE%A1%E7%9A%84%EF%BC%8C%E4%BE%8B%E5%A6%82%EF%BC%9A%E7%AC%AC%E4%B8%80%E6%AC%A1%E6%B7%BB%E5%8A%A0%E5%BA%93%E5%AD%98%E4%B8%BA5%EF%BC%8C%E5%88%99%E5%AE%9E%E9%99%85%E5%BA%93%E5%AD%98%E4%B8%BA4%EF%BC%8C%E5%8F%AF%E7%94%A8%E5%BA%93%E5%AD%98%E4%B8%BA4%EF%BC%8C%E8%BF%994%E4%BB%B6%E8%B5%A0%E5%AE%8C%3C%2Fspan%3E%3C%2Fspan%3E+%0D%0A%3C%2Fh3%3E%0D%0A%3Ch3%3E%0D%0A%09%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%E4%B9%8B%E5%90%8E%EF%BC%8C%E7%AC%AC%E4%BA%8C%E6%AC%A1%E4%BF%AE%E6%94%B9%E5%BA%93%E5%AD%98%E4%B8%BA10%E4%BB%B6%EF%BC%8C%3C%2Fspan%3E%3C%2Fspan%3E%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%E5%AE%9E%E9%99%85%E5%8F%AA%E6%9C%89%E6%B7%BB%E5%8A%A06%E4%BB%B6%E5%BA%93%E5%AD%98%EF%BC%8810-4%EF%BC%89%EF%BC%8C%E5%88%99%E5%AE%9E%E9%99%85%E5%BA%93%E5%AD%98%E4%B8%BA10%EF%BC%8C%E5%8F%AF%E7%94%A8%E5%BA%93%E5%AD%98%E4%B8%BA6%EF%BC%8C%3C%2Fspan%3E%3C%2Fspan%3E+%0D%0A%3C%2Fh3%3E%0D%0A%3Ch3%3E%0D%0A%09%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%3Cspan+style%3D%22white-space%3Anowrap%3B%22%3E%E8%AF%B7%E5%9C%A8%E8%B5%A0%E5%93%81%E8%B5%A0%E5%93%81%E4%B9%8B%E5%89%8D%E6%B7%BB%E5%8A%A0%E5%BA%93%E5%AD%98%E3%80%82%3C%2Fspan%3E%3C%2Fspan%3E+%0D%0A%3C%2Fh3%3E
    

    后来才知道 可以用urldecode来解析。

    相关文章

      网友评论

          本文标题:开发记录

          本文链接:https://www.haomeiwen.com/subject/ewjbzxtx.html