会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rubekid
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
19
下一页
2015年7月22日
百度静态地图
摘要: http://api.map.baidu.com/staticimage?center=118.1900130000,24.4967910000&width=360&height=150&zoom=18
阅读全文
posted @ 2015-07-22 09:16 rubekid
阅读(186)
评论(0)
推荐(0)
2015年7月10日
jquery.ajax提交多值(数组)
摘要: 偶尔会遇到类似复选框的一个属性存在多值情况,若使用ajax提交的化,设置data :{ids:[1,2,3,4]} 提交后,后台无法使用ids获取到数据。 这里可以用到ajax的traditional 参数,把traditional 设置为true就可以。 $.ajax({ ...
阅读全文
posted @ 2015-07-10 19:54 rubekid
阅读(417)
评论(0)
推荐(0)
2015年7月8日
jquery插件--多行文本缩略
摘要: 1、webkit内核多行缩略样式 text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;2、使用javascript做兼容/** * 多行缩...
阅读全文
posted @ 2015-07-08 21:42 rubekid
阅读(655)
评论(0)
推荐(0)
2015年7月5日
@ManyToMany中间表附加字段设计
摘要: 在使用@ManyToMany时,若中间表只有相应的外键字段可以直接建立两个对应的Entity 设置ManyToMany @ManyToMany 两个表多对多关联 但若是中间表有自己的附加字段,这需要为中间表建立Entity 具体如下: Teacher <=> Student 中间表 teacher_
阅读全文
posted @ 2015-07-05 12:34 rubekid
阅读(3901)
评论(0)
推荐(0)
2015年7月4日
@ManyToMany 两个表多对多关联
摘要: 两个表属于多对多关系 如 Teacher Student表teacher 主键 id表student 主键id中间关联表 teacher_student 两个字段 t_id 和 s_id@EntityStudent 设置多对多 @ManyToMany(cascade = CascadeTyp...
阅读全文
posted @ 2015-07-04 21:29 rubekid
阅读(11307)
评论(0)
推荐(0)
2015年7月3日
Highcharts 设置折线图的显示与隐藏
摘要: 1、初始化隐藏某条曲线series 配置如:[ {name:"发帖", postCountData}, {name:"删帖帖", deleteCountData, visible:false},//该条曲线将不显示 {name:"活跃数",activeCountData}];2、手...
阅读全文
posted @ 2015-07-03 11:35 rubekid
阅读(2579)
评论(0)
推荐(0)
2015年7月1日
java反射机制 struts2 获取 action、method、invocation、proxy
摘要: ActionInvocation invocation = ActionContext.getContext().getActionInvocation(); Object action = invocation.getAction(); Method method = acti...
阅读全文
posted @ 2015-07-01 18:41 rubekid
阅读(636)
评论(0)
推荐(0)
2015年6月27日
JAVA Hibernate别名排序问题
摘要: 今天在做统计功能的时候遇到这样一个问题,由于查询结果为统计的数据,即使用了sum方法生成的字段,select refDate,sum(triggerCount) as triggerCount,sum(case when unique_key is null then 0 else trigger_...
阅读全文
posted @ 2015-06-27 17:47 rubekid
阅读(361)
评论(0)
推荐(0)
2015年5月28日
图片转二进制
摘要: public static byte[] toBinary(String filename) throws IOException{ if(!ParameterChecker.startWithProtocol(filename)){ if(filenam...
阅读全文
posted @ 2015-05-28 13:50 rubekid
阅读(301)
评论(0)
推荐(0)
2015年5月22日
Javascipt 时间格式化(日期)
摘要: Date.prototype.format =function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "H+" : th...
阅读全文
posted @ 2015-05-22 15:07 rubekid
阅读(185)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
19
下一页
公告