XML code:
jquery Code:
Main program
Class (' App ', {
Use: ' Countdown ', Ready:true,index:function () {this.listdata=[]; This.kjlistdata=[]; This.todaykjlistdata=[]; This.loadaopencode ();},loadaopencode:function () {this.ajax ({url: "/aopencode.xml", Retry:1, Cach E:false, end:function (data, i) {this.qxml ('//rownow ', data.xml, function (o, i) {this.li Stdata[this.listdata.length] = O.items; }); This.qxml ('//row ', data.xml, function (o, i) {this.kjlistdata[this.kjlistdata.length] = O.items; }); This.qxml ('//rowtoday ', data.xml, function (o, i) {this.todaykjlistdata[this.todaykjlistdata.length] = o.it Ems }); This.qxml ('//row ', data.xml, function (o, i) {if (o.items.gid== "03") { THIS.SHOWKJ (o.items,data.date); } if (o.items.gid== ") {if (o.items.trycode== "" | | o.items.trycode==undefined) {$ ("#12sjh"). HTML (""); }else{var trycodes = O.items.trycode.replaceall (', ', '); $ ("#12sjh"). HTML ("Consumer list:" +trycodes); } } }); } });},
This.get ("#dlt_code"). html (' ' +code[0].split (', '). Join (' ') + ' ' + ' "+code[1].split (', '). Join (' ');
This.countdown (This.get ("#dlt_countdown"), This.get ("#dlt_kj_countdown"), Nextendtime,d,awardtime,o.gid); }else if (o.gid== ') {this.get ("#sfc_pid"). HTML (O.PID); This.get ("#sfc_pools"). HTML (o.pools); This.get ("#sfc_kjdate"). HTML (o.auditdate==undefined| | o.auditdate== '? O.awardtime.substr (0,10): O.auditdate.substr (0,10)); This.get ("#sfc_code"). HTML (O.code.split (', '). Join (')); var aginfo = O.ginfo.split (","); var aninfo = O.ninfo.split (","); var rjinfo = This.getginfo ("81"); if (aginfo.length>1) This.countdown (This.get ("#sfc_countdown"), "', This.getnextendtime (O.gid), D, '", o.gid); }else if (o.gid== ') {this.get ("#sd_pid"). HTML (O.PID); This.get ("#sd_kjdate"). HTML (O.AWARDTIME.SUBSTR (0,10)); $ ("#qlc_code"). HTML ('' +code[0].split (', '). Join ('')+''+'' +code[1].split (', '). Join ('')+''); } },
Original HTML code:
金钱榜 2015-12-13 2015641期开榜:每天12:30123 消费榜:3 2 1
The HTML code you want to modify:
【这里】 【这里】 【这里】期开榜:每天12:30【这里】 【这里】:【这里】
Would you please help me with prawns? Give me a clue!
Reply content:
XML code:
jquery Code:
Main program
Class (' App ', {
Use: ' Countdown ', Ready:true,index:function () {this.listdata=[]; This.kjlistdata=[]; This.todaykjlistdata=[]; This.loadaopencode ();},loadaopencode:function () {this.ajax ({url: "/aopencode.xml", Retry:1, Cach E:false, end:function (data, i) {this.qxml ('//rownow ', data.xml, function (o, i) {this.li Stdata[this.listdata.length] = O.items; }); This.qxml ('//row ', data.xml, function (o, i) {this.kjlistdata[this.kjlistdata.length] = O.items; }); This.qxml ('//rowtoday ', data.xml, function (o, i) {this.todaykjlistdata[this.todaykjlistdata.length] = o.it Ems }); This.qxml ('//row ', data.xml, function (o, i) {if (o.items.gid== "03") { THIS.SHOWKJ (o.items,data.date); } if (o.items.gid== ") {if (o.items.trycode== "" | | o.items.trycode==undefined) {$ ("#12sjh"). HTML (""); }else{var trycodes = O.items.trycode.replaceall (', ', '); $ ("#12sjh"). HTML ("Consumer list:" +trycodes); } } }); } });},
This.get ("#dlt_code"). html (' ' +code[0].split (', '). Join (' ') + ' ' + ' "+code[1].split (', '). Join (' ');
This.countdown (This.get ("#dlt_countdown"), This.get ("#dlt_kj_countdown"), Nextendtime,d,awardtime,o.gid); }else if (o.gid== ') {this.get ("#sfc_pid"). HTML (O.PID); This.get ("#sfc_pools"). HTML (o.pools); This.get ("#sfc_kjdate"). HTML (o.auditdate==undefined| | o.auditdate== '? O.awardtime.substr (0,10): O.auditdate.substr (0,10)); This.get ("#sfc_code"). HTML (O.code.split (', '). Join (')); var aginfo = O.ginfo.split (","); var aninfo = O.ninfo.split (","); var rjinfo = This.getginfo ("81"); if (aginfo.length>1) This.countdown (This.get ("#sfc_countdown"), "', This.getnextendtime (O.gid), D, '", o.gid); }else if (o.gid== ') {this.get ("#sd_pid"). HTML (O.PID); This.get ("#sd_kjdate"). HTML (O.AWARDTIME.SUBSTR (0,10)); $ ("#qlc_code"). HTML ('' +code[0].split (', '). Join ('')+''+'' +code[1].split (', '). Join ('')+''); } },
Original HTML code:
金钱榜 2015-12-13 2015641期开榜:每天12:30123 消费榜:3 2 1
The HTML code you want to modify:
【这里】 【这里】 【这里】期开榜:每天12:30【这里】 【这里】:【这里】
Would you please help me with prawns? Give me a clue!