我有一个ajax功能如下
<script type="text/javascript"> $(document).ready(function () { var timer,delay =600000; //5 minutes counted in milliseconds. timer = setInterval(function(){ $.ajax({ type: 'POST',url: 'http://localhost/cricruns-new/index.PHP/score-refresh/fetchdes/index/86/1',success: function(html){ alert(html); } }); },delay); }); </script>
总数:-370:-wickets:-4:-overs:-50.0:-striker:-Yusuf Pathan:-sruns:-8:-sballs:-10:-sfour:-0:-ssix:-0:-nonstriker :-Virat Kohli:-nsruns:-100:-nsballs:-83:-nsfours:-8:-nssix:-2
我想使用以下方式拆分结果: – 我必须为id赋值为奇数值的div赋值。