Request URL:
http://www.188games.com/zh-cn/Service/OddsService?GetOdds&_=1348808065295&Tab=Today&UIBetType=ftahou&SportId=1&EventDate=28%2FSep%2F2012&IsFutureDate=false&IsInplay=false&OddsType=2&SortBy=1&IsFirstLoad=true
第一个参数是这个下划线,值是个动态生成的数字,数字是什么生成的?
_=1348808065295

解决方案 »

  1.   

    俺是低手——
    alert(new Date().getTime())
      

  2.   


    var _ = new Date().getTime();
    alert(_);
      

  3.   

    JS低手闪过——
    alert(new Date().getTime())
      

  4.   

    你管它用什么生成干嘛,
    关键你要看它为什么要生成这个。。
    通常这样做为了防止请求的数据被缓存了,
    至于那个数字是啥,只要保持不一样就行了,可以时间也可以GUID等等你自己写的算法
      

  5.   

    在google的开发人员工具总可以看到这个请求返回的是json数据,
    用这个地址单独访问维护会返回不了数据呢
      

  6.   

    我返回的是 {lostConn:true}
      

  7.   


    页面上是{lostConn:true}
    请求中返回的是空吧
      

  8.   

    从chrome的开发人员工具中的network得到的信息。
    点主页中的足球连接,会记录如下信息
    Request URL:http://www.188games.com/zh-cn/Service/OddsService?GetOdds&_=1348823648316&Tab=Today&UIBetType=ftahou&SportId=1&EventDate=28%2FSep%2F2012&IsFutureDate=false&IsInplay=false&OddsType=2&SortBy=1&IsFirstLoad=true
    Request Method:GET
    Status Code:200 OKAccept:*/*
    Accept-Charset:GBK,utf-8;q=0.7,*;q=0.3
    Accept-Encoding:gzip,deflate,sdch
    Accept-Language:zh-CN,zh;q=0.8
    Connection:keep-alive
    Cookie:filterStatus=inplay=&noninplay=f1btn|1,f2btn|1; ASP.NET_SessionId=rxj5amrtojhu5lucctppo245; sscd=rd546o00000000000000000000ffffac152182o80; timeZone=480; dst=0; __utma=140061107.1100746032.1348029383.1348806665.1348823502.7; __utmb=140061107.1.10.1348823502; __utmc=140061107; __utmz=140061107.1348029383.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); HighlightedSport=FOOTBALL|False; lan=zh-cn; BS@Cookies=
    Host:www.188games.com
    Referer:http://www.188games.com/zh-cn/sports/football/matches-by-date/today/full-time-asian-handicap-and-over-under
    User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.78 Safari/535.11
    X-Requested-With:XMLHttpRequestGetOdds:
    _:1348823648316
    Tab:Today
    UIBetType:ftahou
    SportId:1
    EventDate:28/Sep/2012
    IsFutureDate:false
    IsInplay:false
    OddsType:2
    SortBy:1
    IsFirstLoad:trueCache-Control:private
    Content-Encoding:gzip
    Content-Type:text/plain; charset=utf-8
    Date:Fri, 28 Sep 2012 09:14:18 GMT
    Server:Microsoft-IIS/7.0
    Transfer-Encoding:chunked
    Vary:Accept-Encoding
    X-AspNet-Version:2.0.50727
    X-Powered-By:ASP.NET
    返回的数据是JSON
    {"p":{"c":0,"t":3},"r":90,"t":0,"bt":[{"c":0,"k":"full-time-asian-handicap-and-over-under"。
      

  9.   


    我在google浏览器看到的是
    返回的数据是JSON
    {"p":{"c":0,"t":3},"r":90,"t":0,"bt":[{"c":0,"k":"full-time-asian-handicap-and-over-under"。
      

  10.   

    谁能够通过发送请求返回Json数据才是高手
      

  11.   

    我的也是network,怎么没有呢?
      

  12.   

    我是通过chrome浏览器的工具-开发人员工具-network,看到的返回的数据。
    我想通过直接输入地址的方式得到,但得不到数据。
    所以希望高手指点一下究竟为何得不到数据呢。
    浏览器并没有关,session应该有效啊
      

  13.   

    我也是用的network,为什么没有看到。
    GetOdds:
    _:1348808065295
    Tab:Today
    UIBetType:ftahou
    SportId:1
    EventDate:28/Sep/2012
    IsFutureDate:false
    IsInplay:false
    OddsType:2
    Response Headersview source
    Cache-Control:private
    Content-Encoding:gzip
    Content-Type:text/plain; charset=utf-8
    Date:Fri, 28 Sep 2012 09:46:17 GMT
    Server:Microsoft-IIS/7.0
    Transfer-Encoding:chunked
    Vary:Accept-Encoding
    X-AspNet-Version:2.0.50727
    X-Powered-By:ASP.NET
      

  14.   

    选中左边的oddsService,右边会看到response