내 링크 (숫자 출력)를 추가하고 합계하는 변수를 반향시키고 있습니다. PHP이기 때문에 먼저로드되고로드가 완료 될 때까지 기다립니다. jQuery로 작성할 수 있습니까? 나는 JavaScript에 아주 익숙하다.자바 스크립트로 변환 된 PHP
<?php
$a = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.batterytheme&output=number');
$a = str_replace(",", "", $a);
$b = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.connectiontheme&output=number');
$b = str_replace(",", "", $b);
$c = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.icontheme&output=number');
$c = str_replace(",", "", $c);
$d = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.percenttheme&output=number');
$d = str_replace(",", "", $d);
$e = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.statusnotifiertheme&output=number');
$e = str_replace(",", "", $e);
$f = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.cnote&output=number');
$f = str_replace(",", "", $f);
$g = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.iaccescnotekb&output=number');
$g = str_replace(",", "", $g);
$h = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.cnotelite&output=number');
$h = str_replace(",", "", $h);
$i = (301); //From c-note and Multi Lock Screen Theme on Rock Your Phone
$j = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.multibrowsericon&output=number');
$j = str_replace(",", "", $j);
$k = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.changeappstoreiconwithinstallous&output=number');
$k = str_replace(",", "", $j);
$z = $a+$b+$c+$d+$e+$f+$g+$h+$i+$j+$k;
$z = number_format($z);
echo $z;
?>
이 좀 더 내가 cnotethegr8 @ –
이해 여부를 확실하지 않다 무엇에 확장 할 수 있습니다 : 어떤 TTP : //modmyi.com/cstats/index.php 패키지 = com.modmyi.cnotelite 및 출력 = 수? HTML 자바 스크립트를 반환하고 있습니까? – RageZ
예, AJAX로 동일한 작업을 수행 할 수 있습니다. 그러나 jQuery ajax 도구에 익숙하지는 않으므로이 특성을 다른 사람에게 맡깁니다. –