php 및 jQueryMobile의 코드 작성. 내가 사업부를 얻기 위해 노력하고새로 고침 시간이 변경되면 jQuery Mobile에서 div를 동적으로 새로 고치려면 어떻게해야합니까?
은 그래서이 코드는 한 번 발사 및 대해 refreshTime이 경과 한 후 사업부를 dynamicContent에 새로 고쳐집니다 변수 대해 refreshTime
<div id="dynamicContent">
<em><?= $this->subtitle ?></em>
<img src="<?= $this->image ?>"/>
<em><?= $this->synopsis ?></em>
<br/> set refresh: <?= $this->refreshTime?> time on server: <?= date("H:i",time());?>
<h2><a href="<?=$this->irrelaventLink ?>"> More Details</a></h2>
</div>
<script>
setTimeout(function() {
$('#dynamicContent').load('/url/that/generates/plain/html/');
},<?= $this->refreshTime ?>*1000);
</script>
에 따라 새로 고칩니다. 문제가 생기면 새로 고치기 위해 refreshTime 값을 새로 고치기를 원합니다.
jQuery 방식이 작동하는 경우 모바일을 사용하여 그 모습을 볼 수는 있지만 기꺼이 웹을 검색하여 jQuery 모바일 방식을 찾고 있습니다.
<br/> set refresh: <?= $this->refreshTime?> time on server: <?= date("H:i",time());?>
평가
모든 의견/생각/답변을 디버깅에만 있는가 : 라인이
참고.
건배