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

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

如何解決-2-10的問(wèn)題

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

? ? <head>

? ? ? ? <title>自定義類級(jí)別插件</title>

? ? ? ? <link href="style.css" rel="stylesheet" type="text/css" />

? ? ? ? <script type="text/javascript" src="http://idcbgp.cn/data/jquery-1.8.2.min.js"></script>

? ? ? ? <script src="http://idcbgp.cn/data/jquery.twoaddresult.js" type="text/javascript"></script>

? ? </head>

? ??

? ? <body>

? ? ? ? <div id="divtest">

? ? ? ? ? ? <div class="title">

? ? ? ? ? ? ? ? <span class="fl">自定義類級(jí)別插件</span>?

? ? ? ? ? ? ? ? <span class="fr">

? ? ? ? ? ? ? ? ? ? <input id="btnCount" type="button" value="計(jì)算" />

? ? ? ? ? ? ? ? </span>

? ? ? ? ? ? </div>

? ? ? ? ? ? <div class="content">

? ? ? ? ? ? ? ? 兩數(shù)相減:

? ? ? ? ? ? ? ? <input id="Text1" type="text" class="txt" />

? ? ? ? ? ? ? ? -

? ? ? ? ? ? ? ? <input id="Text2" type="text" class="txt" />

? ? ? ? ? ? ? ? =

? ? ? ? ? ? ? ? <input id="Text3" type="text" class="txt" />

? ? ? ? ? ? </div>

? ? ? ? </div>

? ? ? ??

<script type="text/javascript">

? ? $(function () {

? ? ? ? $("#btnCount").bind("click", function () {

? ? ? ? ? ? $("#Text3").val(

? ? ? ? ? ? ? ?$.subNum($("#Text1").val(),$("#Text2").val())

);

? ? ? ? });

? ? });

</script>

? ? </body>

</html>


正在回答

1 回答

這個(gè)是插件沒(méi)寫好的原因,你可以直接用?$("#Text3").val( $("#Text1").val() - $("#Text2").val()); ?不用他們給的這個(gè)插件函數(shù)就可以了,但需要完善下判定輸入值是否為空或者是否為數(shù)值

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

舉報(bào)

0/150
提交
取消
jQuery基礎(chǔ)課程
  • 參與學(xué)習(xí)       154723    人
  • 解答問(wèn)題       7289    個(gè)

加入課程學(xué)習(xí),有效提高前端開(kāi)發(fā)速度

進(jìn)入課程

如何解決-2-10的問(wèn)題

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