[問題] 透過hyperlink或JavaScript換頁
<a href="
http://xxx.com"><img src="test.png" class="pic"></a>
然後有多這行
$(.pic).on("click", function(){
window.location.href = "http://www.xxx.com";
});
那這樣在點了該圖片之後,會是用hyperlink去換頁或是JavaScript去換頁?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.124.165.66
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1477966890.A.B8D.html
→
11/01 11:47, , 1F
11/01 11:47, 1F
→
11/01 12:04, , 2F
11/01 12:04, 2F
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章