第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

圖片可以正常顯示,但是加了js總是無(wú)法實(shí)現(xiàn),也不報(bào)錯(cuò),不知道哪里錯(cuò)了,還是會(huì)跳到另一個(gè)頁(yè)面

<%@?page?language="java"?contentType="text/html;?charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
??String?path?=?request.getContextPath();
			String?basePath?=?request.getScheme()?+?"://"?+?request.getServerName()?+?":"?+?request.getServerPort()
					+?path?+?"/";
%>
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?HTML?4.01?Transitional//EN"?"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=UTF-8">
<title>圖片上傳下載1</title>
<base?href="<%=basePath%>">
<link?rel="stylesheet"?type="text/css"?href="css/common.css"?/>
<script?type="text/javascript"?src="js/jquery-1.11.1.js"?/>
<script?type="text/javascript">
$(function(){
	?$(".thumbs?a").click(function(){
??????????var?largePath?=?$(this).attr("href");
??????????var?largeAlt?=?$(this).attr("title");
??????????$("#largeImg").attr({
?????????????src:largePath,
?????????????alt=largeAlt
??????????????});
??????????return?false;
		?});
});
</script>
</head>
<body>
	<h2>圖片預(yù)覽</h2>
	<p>
		<img?id="largeImg"?alt="Large?Image"?src="images/11.jpg">
	</p>
	<p?class="thumbs">
		<a?href="images/11.jpg"?title="image1">?<img?alt=""
			src="images/1.jpg">
		</a>?<a?href="images/22.jpg"?title="image2">?<img?alt=""
			src="images/2.jpg">
		</a>?<a?href="images/33.jpg"?title="image3">?<img?alt=""
			src="images/3.jpg">
		</a>?<a?href="images/44.jpg"?title="image4">?<img?alt=""
			src="images/4.jpg">
		</a>?<a?href="images/55.jpg"?title="image5">?<img?alt=""
			src="images/5.jpg">
		</a>
	</p>

</body>
</html>

http://img1.sycdn.imooc.com//5869c32b0001fd8608540649.jpg

正在回答

3 回答

有了,快來(lái)學(xué)習(xí)吧。good,結(jié)

0 回復(fù) 有任何疑惑可以回復(fù)我~

?求在講解,我還是默認(rèn)在本頁(yè)顯示大圖片

0 回復(fù) 有任何疑惑可以回復(fù)我~

解決了,js寫(xiě)錯(cuò)了 ?

?src:largePath,

?alt=largeAlt

alt:largeAlt

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

圖片可以正常顯示,但是加了js總是無(wú)法實(shí)現(xiàn),也不報(bào)錯(cuò),不知道哪里錯(cuò)了,還是會(huì)跳到另一個(gè)頁(yè)面

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)