完全模仿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。不知道原因,哪位大哥帮下忙解释下?
作者使用Struts2框架尝试实现AJAX校验功能,但在页面加载时遇到dojo is not defined错误。详细介绍了页面中Dojo配置及引用问题。
730

被折叠的 条评论
为什么被折叠?



