Jquery ajax under firefox returns the object XMLDocument handling method
- 2020-03-30 01:27:23
- OfStack
When struts2 returns a json type using jquery ajax under firefox, the result of successful ajax execution is [object XMLDocument].
Solution: in getwriter.print (); Add a line of code
Solution: in getwriter.print (); Add a line of code
ServletActionContext.getResponse().setContentType("text/html;charset=UTF-8");