我有這個問題,我試圖解決。從URL中獲取參數的一種方法
我有這個頁面lista.php
我在其中加載其他頁面(其中每x秒刷新)命名pagination.php
我使用這個腳本:
function LoadContent()
{
$('#lista').load('pagination.php');
}
$(document).ready(function(){
LoadContent(); //load contentent when page loads
setInterval('LoadContent()',30000); //schedule refresh
});
嗯,有這個網址:
lista.php?id=3
我需要pagination.php來獲取id,但它不會工作.. the pagination.php
在lista.php
之內......我該如何解決它? 我試過了GET方法..
有什麼建議嗎? 謝謝。
喬治,這是不一樣的帖子.. – Alb
對不起ALB,你說得對,我是太快了/沒有讀正確 – giorgio