- 博客(11)
- 问答 (1)
- 收藏
- 关注
原创 算数运算--Math对象
Math.sqrt(double n),计算平方根System.out.println(Math.sqrt(4));//输出:2.0Math.cbrt(double n),计算立方根System.out.println(Math.cbrt(8));//输出:2.0Math.pow(double a,double b),计算a的b次方System.out.println(Math...
2018-12-24 14:06:06
319
原创 数组
Arrays替换填充数组:fillArrays.fill(int[] a,int value ):将数组a中的所有元素替换为valueArrays.fill(int[] a,int formIndex,int toIndex,int value):将数组a中索引从toIndex到toIndex的元素替换为value,不包含formIndex排序:sort --升序排列,适用基本数据类...
2018-12-20 15:57:26
179
原创 格式化————format
1. 字符串2. 日期:DateFormat//DateFormat Date d=new Date(); DateFormat df=DateFormat.getDateInstance(); String str=df.format(d);//格式YYYY-MM-ddgetDateInstance()—YYYY-MM-ddgetDateTimeInstance—YYYY-MM...
2018-12-19 17:07:47
2589
原创 String字符串常用方法
字符串间比较 equals()和contentEquals() **equals**----String 和 String 比较**contentEquals**---Stirng 和StringBuffer、StringBuilder比较
2018-12-18 11:34:08
284
原创 js通过URL下载文件
//路径var url// 会打开一个空白页下载,然后空白页消失,用户体验不好 function download1() { window.open(url); }// 直接下载,用户体验好 function download2() { var $form = $('<form metho...
2018-09-17 13:39:09
7070
1
原创 Bootstrap 模态框嵌套模态框冲突处理
问题:关闭嵌套模态框后影响第一个模态框(无法滑动下拉) **原因:**body中的“.modal-open” class属性缺失,影响模态框 解决思路: 通过bootstrap的模态框modal的hidden.bs.modal属性给body添加上“.modal-open”属性 方法://解决bootstra模态框嵌套问题嵌套模态框添加class属性nested...
2018-09-06 14:20:46
3035
1
原创 SSM框架所遇异常
配置文件xml无法读取jdbc.properties异常:严重: Servlet.service() for servlet [springmvc2] in context with path [/huoan17-6-27] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBat
2017-07-27 13:58:10
456
原创 SSM框架前后端数据交互
SpringMVC如何将页面的数据读取到控制器中通过传统的HttpServletRequest来传值。@RequestMapping(value="/login.action",method={RequestMethod.POST}) public String login(HttpServletRequest request){ String username = request.g
2017-06-26 14:49:16
12677
1
原创 SSM框架搭建步骤
基本架构配置xml文件applicationContext.xml配置数据源连接对象DataSource接口。配置sqlSessionFactory对象–用于生成sqlSession对象创建一次与数据库的会话。配置spring的声明式事务Spring详解资料面向切面AOP编程配置扫描生成dao层bean对象和service层bean对象bean对象详解<?xml version="1.0
2017-06-23 11:14:28
1058
原创 sql语句查询语法
关键词排序:**asc**升序,**desc**降序 **order by** 列名 asc;条件查询: Select 显示的数据 From 表名 where 条件1 and 条件2 and 条件3; 模糊查询:{not like} Where 列名 like ‘%王%’; 多条件查询: 并列 and 范围 be
2017-06-16 15:29:28
415
原创 sql查询整理isnull or nvl ,as,关联查询
mysql中isNull(a,b)和oracle中nvl(a,b)数据a为null返回b,数据a有参数返回a1.用于控制关联查询中是否显示数据项为null的数据2.查询中数据项比较值得大小可将数据项为null的值转换为0:where 同学1成绩>nvl(同学2成绩,0)(**同学2成绩为null**)关联查询语法:From 左表 inner join 右表 on 左表.对等列=右表.对等列 ,
2017-06-16 11:45:57
1053
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人