0
我有一個頁面,我點擊一個按鈕,它從另一個頁面加載元素與js。然而,我有一個單獨的頁面,我想點擊一個鏈接並直接進入頁面,但結果是按鈕。那到底是什麼?有沒有比使用$_GET
更好的方法並立即發送它?從另一頁點擊加載信息
現在我有:
的index.php
<div class="Tab-Button" id="A" onclick="showList('A')"><p>A</p>
腳本
function showList(str) {
$.get("GetTable.php?q="+str, function(data) {
$("#TableSpot").html(data);
});
}
單獨的頁面
<a href="alink.com/index.php?q=A">A</a>