0
我想從運行jQuery的方法中的href沒有點擊錨link.Please看到下面......jquery - 能夠在jquery方法中運行href嗎?
<a id="excelExport" class="actionButton" alt="Export to Excel" title="Export to Excel" href="pexport" ></a>
我需要調用Action類,而不是上面的代碼..
function method()
{
href="action"; // to action class...
}
我們可以在JQuery中使用任何類似的函數嗎?
也許這是明智的開始與基本 - > http://jquery.com/ – adeneo
嘗試普通的舊JavaScript:document.location.href =「...」。 jQuery不是一個神奇的子彈。 –
或更好的window.location,因爲document.location已被棄用,並且應該是隻讀的 – mplungjan