Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 .aspx 文件,我在其中应用了 Javascript 以单击保存按钮进行验证,但现在我必须在其他文件中使用此 Javascript 代码并检查验证我该怎么做?
<script type="text/javascript"> /* your validation code. */ </script>
将此脚本添加到其他页面的头部,
<script type="text/javascript" src="validation.js"></script>