我想在ASP.NET页面中使用
javascript做一些客户端验证.
我试过使用
< script src =“../../../ JS / Registration.js”language =“javascript”type =“text / javascript”/>
但它不工作.
请帮忙.
解决方法
文件可能不在指定的路径中. ‘../../../’将移动3个步骤到页面所在的目录,并在名为JS的文件夹中查找js文件.
此外,语言属性已被弃用.
见Scripts:
07001
language
= 07002 [07003]07004 This attribute specifies
the scripting language of the contents
of this element. Its value is an
identifier for the language,but since
these identifiers are not standard,
this attribute has been 07005 in
favor of type.
编辑
尝试改变
<script src="../../../JS/Registration.js" language="javascript" type="text/javascript" />
至
<script src="../../../JS/Registration.js" language="javascript" type="text/javascript"></script>