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

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

為啥能用$("p")

<!DOCTYPE html>

<html>


<head>

? ? <meta http-equiv="Content-type" content="text/html; charset=utf-8" />

? ? <title></title>

? ? <style>

? ? p {

? ? ? ? color: red;

? ? ? ? margin: 4px;

? ? }

? ??

? ? b {

? ? ? ? color: blue;

? ? }

? ? </style>

? ? <script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>

</head>


<body>

? ? <h3>.val()</h3>

? ??

? ? <select id="single">

? ? ? ? <option>慕課網(wǎng)</option>

? ? ? ? <option>博客園</option>

? ? </select>

? ? <select id="multiple" multiple="multiple">

? ? ? ? <option selected="selected">imocc</option>

? ? ? ? <option>慕課網(wǎng)</option>

? ? ? ? <option selected="selected">博客園</option>

? ? </select>

? ? <input type="text" value="click a button" />

? ? <p></p>


? ? <script type="text/javascript">

? ? ? ? //單個(gè)select,返回第一個(gè)

? ? ? ? $("p").text( $("#single").? )

? ? </script>


? ? <script type="text/javascript">

? ? ? ? //多個(gè)select被選擇,返回["imocc", "博客園"]

? ? ? ? $("p").text( $("#multiple").? )?

? ? </script>



? ? <script type="text/javascript">

? ? ? ? //選擇一個(gè)表單,修改value的值

? ? ? ? $("input[type='text']").?('修改表單的字段')?

? ? </script>



</body>


</html>



正在回答

2 回答

代碼里有個(gè)<p></p>,給p標(biāo)簽賦予文本值

2 回復(fù) 有任何疑惑可以回復(fù)我~
#1

hymbiu 提問(wèn)者

非常感謝!
2017-08-03 回復(fù) 有任何疑惑可以回復(fù)我~

<script type="text/javascript">

? ? ? ? //單個(gè)select,返回第一個(gè)

? ? ? ? $("p").text( $("#single").? )

? ? </script>

上面不是有一個(gè)<p></p>嗎 看清楚點(diǎn)

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

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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