---
title: "dwr返回对象问题(转)"
author: "rigger21"
date: "2009-04-02T13:33:00Z"
tags: []
slug: "dwr"
draft: false
lastmod: "2009-04-02T13:33:00Z"
id: 361863
url: "https://rigger21.iteye.com/blog/361863"
---

1.1、dwr.xml的配置  
&lt;dwr&gt;  
&lt;allow&gt;  
&lt;create &lt;wbr=""&gt;&lt;/wbr&gt;creator="new" &lt;wbr&gt;&lt;/wbr&gt;javascript="testClass" &lt;wbr&gt;&lt;/wbr&gt;&gt;  
&lt;/wbr&gt;name="class" &lt;wbr&gt;&lt;/wbr&gt;value="/com.dwr.TestClass" &lt;wbr&gt;&lt;/wbr&gt;/&gt;  
&lt;include &lt;wbr=""&gt;&lt;/wbr&gt;method="testMethod1"/&gt;  
&lt;/create&gt;  
&lt;/allow&gt;  
&lt;/dwr&gt;  
&lt;allow&gt;标签中包括可以暴露给javascript访问的东西。  
&lt;create &lt;a="" href="http://hi.baidu.com/mahaibao/blog/item/af9d153463124c335ab5f52d.html"&gt;阅读全文  
**类别：**[Ajax](http://hi.baidu.com/mahaibao/blog/category/Ajax)?[查看评论](http://hi.baidu.com/mahaibao/blog/item/af9d153463124c335ab5f52d.html#comment)