为什么我这没出计算结果,点完"计算"这个button没反应???
<head>
<title>自定义类级别插件</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="https://www.imooc.com/data/jquery-1.8.2.min.js"></script>
<script src="https://www.imooc.com/data/jquery.twoaddresult.js" type="text/javascript"></script>
</head>
<body>
<div id="divtest">
<div class="title">
<span class="fl">自定义类级别插件</span>
<span class="fr">
<input id="btnCount" type="button" value="计算" />
</span>
</div>
<div class="content">
两数相减:
<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>