如果点击按钮后更改了我的网址,我怎么能避免刷新页面?用javascript? ajax还是jquery?谢谢
这是我的代码
function myFunctionD(id) { var x=document.getElementById(id);
var myURL = "http:www.balita_permonth.php";
document.location = myURL + "?t_id=" + x.id ;
}
<a href="docview.php?id=30" id="30" onclick="myFunctionD(30)" class="30" target="iframe_a">August 7, 2013</a></li>
<a href="docview.php?id=31" id="31" onclick="myFunctionD(31)" class="31" target="iframe_a">August 8, 2013</a></li>