|
|
|
jQuery Mobile ทำไม Function JavaScript ไม่ทำงานตอนโหลดเพจใหม่ ๆ |
|
|
|
|
|
|
|
อีกวิธีครับ
link.php
<a href="webpage.php?time=<?php echo date("YmdHis");?>" data-role="button" data-theme="b" data-prefetch>Link</a>
webpage.php
<html>
.
.
.
.
.
<script>
$(document).ready(function() {
$('form, a').removeAttr('data-ajax');
$('form, a').attr('data-ajax', false);
});
$(document).on('pagehide', 'div', function (event, ui) {
var page = jQuery(event.target);
if (page.attr('data-cache') == 'never') {
page.remove();
};
});
</script>
|
|
|
|
|
Date :
2015-08-28 08:53:26 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|