完全模仿struts2的例子程序写的ajax校验(后来改得狗基本上一摸一样了)。始终出错:dojo is not defined。
页面已经生成了:
<script language="JavaScript" type="text/javascript"> // Dojo configuration djConfig = { baseRelativePath: "/ajaxTest/struts/dojo", isDebug: false, bindEncoding: "UTF-8", debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes }; </script>
但用.."/ajaxTest/struts/dojo.js又不能访问到dojo.js。不知道原因,哪位大哥帮下忙解释下?