zoukankan      html  css  js  c++  java
  • url中参数以及callback后面的串

        最近在写一个京东的爬虫,在模拟其http请求访问评论时,遇到http://club.jd.com/productpage/p-1419543-s-0-t-0-p-0.html?callback=jQuery666571&_=1429756811393这种url,被callback后的串难住。

    后阅读http://www.cnblogs.com/2050/p/3191744.html这篇博文以及网上一些资料,得知这是jquery随机生成的回调函数,其参数就是http://club.jd.com/productpage/p-1419543-s-0-t-0-p-0.html中的json,为了实现跨域数据传输而生成的回调函数(其源码在refer页面)。

  • 相关阅读:
    javascript基础
    html基础
    css基础
    django-session和cookie
    rest架构
    django-models
    django-templates
    Alignment
    ural 1225.Flags
    ural 1009. K-based Numbers
  • 原文地址:https://www.cnblogs.com/wangkundentisy/p/4449755.html
Copyright © 2011-2022 走看看