jquery 獲取某a標籤的href地址 實現頁面加載時跳轉

jQuery(document).ready(function(){
if(jQuery("#zzjg a").length>0)
{
var hrefValue = jQuery("#zzjg a").eq(0).attr("href");
window.location.replace(hrefValue);
}
else
{
 window.location.replace("/zgb/Pages/home.aspx");
 }
});io

相關文章
相關標籤/搜索