<div class="codetitle"> <span><a style="CURSOR: pointer" data="40858" class="copybut" id="copybut40858" onclick="doCopy('code40858')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code40858"> <br><html> <br><본문> <br><input type="text" id="Tb_Set_Time" size="10" width="200" value="2014-11-12"/> <br><input type="text" id="Tb_End_Time" size="10" width="200" value="2014-12-22"/> <br><br><input type="button" id="d523_ss" size="3" onclick='pickedFunc()' /> 秒 <br><br><script src ="jquery.min.js"></script> <br><스크립트> <br>function PickFunc() { <br><br>var date1 = Date.parse($('#Tb_Set_Time').val()); <br><br>var date2 = Date.parse($('#Tb_End_Time').val()); <br><br>var diffDays = (date2 - date1) / 3600 / 1000 / 24; <br><br>경고(diffDays); <br>} <br></script> <br></body> <br></html> <br> </div>