js文件外部引用问题
a.js文件内容
<Script language= "javascript ">
<!--
function aaa()
{
alert( 'aaa ');
}
//-->
</SCRIPT>
jsp页面调用
<script type= "text/javascript " src= "js/date.js "> </script>
<INPUT type= "button " name= "textfield " onclick= "aaa() ">
目录结构
WebRoot 下jsp,js2个文件夹,分别放jsp文件和js文件。
怎么调用不了....
------解决方案-------------------- <script type= "text/javascript " src= "../js/a.js "> </script>
这样呢
------解决方案--------------------路径写错了没。
<script language=javascript src= "/ <%=appProjectName%> /js/SEC_YH/quarydata.js "> </script>