JQuery - 无法实现输入用户掩码



我试图通过那个课程实现输入用户掩码,但无法运行。它不起作用。

我的.html文件:

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Page Title</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
    <script src="jquery-1.3.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" charset="utf-8">
      jQuery(function($){
         $("#date").mask("99/99/9999");
      });
    </script>
  </head>
  <body id="" onload="">
    The following example is a demonstration from the usage tab.
    <table border="0">
      <tbody>
        <tr>
          <td>Date</td>
          <td><input id="date" tabindex="1" type="text"></td>
          <td>99/99/9999</td>
        </tr>
      </tbody>
    </table>
  </body>
</html>

我做错什么了吗?

您还没有包含插件脚本文件。

<script src="<path here>jquery.maskedinput.js" type="text/javascript"></script>

最新更新