為什么我這沒出計(jì)算結(jié)果,點(diǎn)完"計(jì)算"這個(gè)button沒反應(yīng)???
? ? <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>
2021-08-24
<!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(
? ? ? ? ? ? ? ? ? ? ? ? $("#Text1").val()-$("#Text2").val());
? ? ? ? ? ? ? ? });
? ? ? ? ? ? });
? ? ? ? </script>
? ? </body>
</html>
2018-12-26
?<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>
根據(jù)你的代碼改的你對比一下