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

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

為什么‘慕課網(wǎng)’是指向e.date???

<!DOCTYPE html>
<html>

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


??? <style>
??? .left div,
??? .right div {
??????? width: 500px;
??????? height: 50px;
??????? padding: 5px;
??????? margin: 5px;
??????? float: left;
??????? border: 1px solid #ccc;
??? }
??? .left div {
??????? background: #bbffaa;
??? }
???
??? .right div {
??????? background: yellow;
??? }
??? </style>
??? <script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
</head>

<body>
??? <h2>.focusin()方法</h2>
??? <div class="left">
??????? <div class="aaron">
??????????? 點(diǎn)擊聚焦:<input type="text" />
??????? </div>
??? </div>
??? <div class="right">
??????? <div class="aaron1">
??????????? 點(diǎn)擊聚焦并傳遞參數(shù):<input type="text" />
??????? </div>
??? </div>


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

??????? //input聚焦
??????? //給input元素增加一個(gè)邊框
??????? $("input:first").focusin(function() {
???????????? $(this).css('border','2px solid red')
??????? })

??? </script>


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

??????? //不同函數(shù)傳遞數(shù)據(jù)
??????? function fn(a) {
???????????? $(this).val(a.data)
??????? }

??????? function a() {
??????????? $("input:last").focusin('慕課網(wǎng)', fn)
??????? }
??????? a();

??? </script>
</body>

</html>



正在回答

1 回答

focusin(參數(shù)1,參數(shù)2),參數(shù)一是你要傳遞的數(shù)據(jù),參數(shù)二是你將數(shù)據(jù)傳遞給的函數(shù)a,函數(shù)a的第一個(gè)參數(shù)是event對(duì)象,他的屬性data的值就是你傳遞的數(shù)據(jù),即參數(shù)1,我是這么理解的,希望對(duì)你有所幫助。

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

qq_妖孽_6 提問(wèn)者

非常感謝!
2016-12-14 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為什么‘慕課網(wǎng)’是指向e.date啊?

我要回答 關(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)