$
url : "user!findUserList
type : "post"
success: function(data){
var jsonObj=eval("("+data+")");
$
jQuery("#userList")
});
}
error: function(text) {}
}); 復制代碼 代碼如下:
public void findUserList() throws IOException {
List<UserModel> roleuserList = userService
String json = JSONArray
writeHtml(json);;
} 復制代碼 代碼如下:
protected void writeHtml(String strData) {
try {
response
PrintWriter pw = response
pw
pw
pw
} catch (IOException e) {
log
}
}
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19853.html