|
 
- UID
- 307581
- 帖子
- 566
- 精华
- 0
- 名声
- 2533 分贝
- 探客币
- 737 元
- 人品
- 0 %
- 阅读权限
- 100
|
1#
发表于 2008-4-21 16:52
| 只看该作者
用dwr调服务器 返回一个值可以实现, 服务器的函数返回一个数组,js怎么取得数组的值?
返回一个值可以实现 :
function setCount(){
var code=DWRUtil.getValue("engine");
OEMFeedbackMan.getCountByEngine(code,function(count){
DWRUtil.setValue("input_times",count);
} ); }
public int getCountByEngine(String engine) throws DAOException, SQLException {
int count=0;
//省略
return count;
}
服务器的函数返回一个数组,js怎么取得数组的值?
public String [] getCountByEngine(String engine) throws DAOException, SQLException {
String [] engineSOAttribute = new String[5];
return engineSOAttribute ;
} |
|