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中。 ...
阅读全文
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
阅读全文
JavaScript 图表库 xCharts
摘要:xCharts 是一个使用D3.js来构建漂亮的可定制的数据驱动的 JavaScript 图表库,他使用HTML,CSS,SVG实现图表,xCharts 被设计为一个动态的、流畅的、开放的和可定制化的库。
阅读全文
浙公网安备 33010602011771号