today.tmpl 636 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. var parent={};
  2. var top={};
  3. function checkCorner(item){
  4. if(item.split('角球数')>1){
  5. return 1;
  6. }
  7. return 0;
  8. }
  9. parent.body_var_onLoad=function(){
  10. this.data={};
  11. this.result=[];
  12. for(let index in this.gm)
  13. {
  14. var item=this.gm[index];
  15. var col_length=item.length;
  16. var tmp={};
  17. tmp.match_id=index;
  18. tmp.is_roll=0;
  19. var tit=item[0];
  20. tit=tit.split('<br>');
  21. tmp.is_roll=0;
  22. if(tit.length>2){
  23. tmp.is_roll=1;
  24. }
  25. tmp.is_corner=checkCorner(item[4]);
  26. this.result.push(tmp);
  27. }
  28. this.data.data=this.result;
  29. console.log(JSON.stringify(this.data));
  30. }
  31. parent.arrayMege=function(o1,o2){
  32. }
  33. #CONTENT#
  34. onLoad();