会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
魔杰Lee
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2018年6月28日
dom4j解析xml
摘要: dom4j解析xml
阅读全文
posted @ 2018-06-28 15:45 魔杰Lee
阅读(106)
评论(0)
推荐(0)
2018年6月25日
第14章-类型信息
摘要: 首先,知道一种区别: 编译时可操作类型信息; 运行时识别类型信息{1-RTTI;2-反射机制}; RTTI:在运行时,识别对象的类型。 1-运行时类型识别的必要性: 多态中,向上转型,动态绑定的场景,方法和方法体在运行时才关联起来。 接口类引用=具体对象; 接口类引用.function();运行时识
阅读全文
posted @ 2018-06-25 23:35 魔杰Lee
阅读(137)
评论(0)
推荐(0)
2018年6月23日
第13章--字符串
摘要: 一,不可变/只读性 String对象是不可变的,每次对String对象的修改都会创建一个新的String对象并返回其引用。 这种设计也有其合理性: 对于一个方法而言,参数是为该方法提供信息的,而不是让方法来改变自己的。(倘若就是希望改变该参数,那就用旧的引用来接受新的对象)。 二,与StringBu
阅读全文
posted @ 2018-06-23 17:41 魔杰Lee
阅读(133)
评论(0)
推荐(0)
2018年6月1日
微信公众号新增图片类型永久素材
摘要: 新增其他类型永久素材 感谢博主: https://blog.csdn.net/yh88356656/article/details/50685599 https://www.cnblogs.com/jeffen/p/6937788.html 接口调用请求说明 通过POST表单来调用接口,表单id为m
阅读全文
posted @ 2018-06-01 17:00 魔杰Lee
阅读(1401)
评论(0)
推荐(0)
2018年5月29日
java中mongoTemplate批量更新
摘要: 方法:mongoTemplate.getDb().getCollection(tableName).bulkWrite(requests); public BulkWriteResult bulkWrite(List<WriteModel<Document>> requests,String tab
阅读全文
posted @ 2018-05-29 20:58 魔杰Lee
阅读(5091)
评论(0)
推荐(0)
2018年4月24日
修改bootstrap modal模态框的宽度
摘要: 修改bootstrap modal模态框的宽度 修改的不是modal这个大div 而是modal-dialog这个会话div <div class="modal fade" > <div class="modal-dialog " style="width:400px;"> <div class="
阅读全文
posted @ 2018-04-24 09:41 魔杰Lee
阅读(4673)
评论(0)
推荐(1)
2018年4月12日
java根据日期获取月龄,按照减法原理,先day相减,不够向month借;然后month相减,不够向year借;最后year相减。
摘要: /** * 函数名: getMonthNum * 功能: 相差月数 * 参数: @param start 开始时间 * 参数: @param end 结束时间 * 返回值: int */ public static int getMonthNum(Date start,Date end) { Cal
阅读全文
posted @ 2018-04-12 17:13 魔杰Lee
阅读(460)
评论(0)
推荐(0)
2018年1月31日
待整理,微信,dataTable
摘要: 公众号网页授权后获取用户基本信息出现access_token非法提示网页授权的 AccessToken 和获取用户信息的 AccessToken 不是一个东西。 用户同意授权,获取codecode换取网页授权access_tokenhttps://api.weixin.qq.com/sns/oaut
阅读全文
posted @ 2018-01-31 16:56 魔杰Lee
阅读(176)
评论(0)
推荐(0)
字符,或数字显示过多则显示限定位数,隐藏其余部分...,鼠标悬上去后则title显示完整数据
摘要: //隐藏数字的方法 function hiddenText(id,name){ name_x=name.toString(); var length = name_x.length; if (length > 4) name_x = name_x.substring(0,4)+ '...'; var
阅读全文
posted @ 2018-01-31 16:43 魔杰Lee
阅读(172)
评论(0)
推荐(0)
JAVA百分数,小数点后2位
摘要: //百分数,小数点后2位 public static String getPersentData(Integer m,Integer n){ m=m*100; double num = new BigDecimal((float)m/n).setScale(2, BigDecimal.ROUND_H
阅读全文
posted @ 2018-01-31 16:12 魔杰Lee
阅读(174)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告