• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
开水房
ASP.NET
博客园    首页    新随笔    联系   管理    订阅  订阅
02 2013 档案
struts2 提交 json

摘要:1. 提交简单的JSON数据jsvar params = {classCode:"fuck"}; $.ajax({ type: "POST", url: "http://localhost/public/Save.action", dataType: "json", data: params, // Post 方式,data参数不能为空"",如果不传参数,也要写成"{}",否则contentType将不能附加在Request Headers中。 ... 阅读全文
posted @ 2013-02-17 13:53 白开水皮皮 阅读(2883) 评论(0) 推荐(0)
hql 不支持 limit, 替代方法

摘要:public List<User> getUserById(final int userId,final int maxCount,final int firstResult) throws Exception {final String hql = "from User where userId=? ";return this.getHibernateTemplate().executeFind(new HibernateCallback() {public Object doInHibernate(final Session session) throws 阅读全文
posted @ 2013-02-05 21:14 白开水皮皮 阅读(15775) 评论(0) 推荐(0)
JavaScript 图表库 xCharts

摘要:xCharts 是一个使用D3.js来构建漂亮的可定制的数据驱动的 JavaScript 图表库,他使用HTML,CSS,SVG实现图表,xCharts 被设计为一个动态的、流畅的、开放的和可定制化的库。 阅读全文
posted @ 2013-02-03 00:27 白开水皮皮 阅读(290) 评论(0) 推荐(0)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3