怎么老是报这种错误的?...展开
                    
                    
                1 回答
 
                    
                    
                            阿波罗的战车
                            
                                
                            
                        
                        
                                                
                    TA贡献1862条经验 获得超6个赞
导入jQuery包
jQuery(document).ready(function($){
var url = "";
var data = {"param":"我是参数","other":"me too"};
$.post(url,data,function(result){
//.............
});
});
private String param;
private String other;
public void Test(){
PrintWriter out = null;
try{
out = getResponse().getWriter();
if(param.equals("我是参数")){
out.print(other);
}
}catch(Exception e){
//...
}finally{
out.flush();
out.close();
}
}
//getter and setter...
jQuery(document).ready(function($){
var url = "";
var data = {"param":"我是参数","other":"me too"};
$.post(url,data,function(result){
alert(result);
});
});
- 1 回答
- 0 关注
- 1337 浏览
添加回答
举报
0/150
	提交
		取消
	