日期:2014-05-17  浏览次数:20640 次

[Document: name null] 什么意思??
jsp页面  
var xmlDocList=<%=docList1%>;


查看源码:
  var xmlDocList=[org.dom4j.tree.DefaultDocument@171bc3f [Document: name null]];

[Document: name null]];这个怎么解决啊,报无效字符的错误。








------解决方案--------------------
docList1是list对象,而var只是对应获取不到匹配的类型,你可以用转化成json对象,然后才进行赋值
或者要用list可以用c:foreach来获取...