`
lusx
  • 浏览: 24085 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
文章列表

MySQL日期使用

MySQL 日期类型:日期格式、所占存储空间、日期范围 比较。 日期类型 存储空间 日期格式 日期范围 datetime 8 bytes YYYY-MM-DD HH:MM:SS 1000-01-01 00:00:00 ~ 9999-12-31 23:59:59 timestamp 4 bytes YYYY-MM-DD HH:MM:SS 1970-01-01 00:00:01 ~ 2038 date 3 bytes YYYY-MM-DD 1000-01-01 ~ 9999-12-31 year 1 bytes YYYY 1901 ~ 2155 在 MySQL 中创建表时,对照上面的表格, ...
在jar包程序中设置返回值: System.exit(1); 如: if(hasException){System.exit(1);}else{System.exit(0);} java程序中运行java并获取返回值: Process p=Runtime.getRuntime().exec( "test.jar "); int exitInt=p.exitValue();//程序返回的值.

jQuery笔记

    博客分类:
  • JS
通过name选择控件:$("input[name=password]").get(0); 今天发现个有意思的函数: 1、append(con) 这个函数添加内容时,如果con中写有onclick是不会起作用的,必须绑定事件。但绑定事件后如果用remove函数删除上面的内容,绑定事件却没有删除,如果再重新执行上面的添加内容绑定事件的方法,那当事件被响应时就会被执行两次。 2、html(con) 如果用这个方法添加内容,con中有事件的话是能生效的,就不用去绑定事件了。
做update操作时出现这个错误: ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction 网上看了很多,都没解决问题。 后来发现存在一种可能是:另一个会话没有关闭Connection,导致另一个会话的操作没有提交导致了这个错误。 将另一个会话关闭,或commit即可。
ws.addCell(new Formula(6,3,"SUM(G5:G"+(row+1)+")",wcf)); 6是列,3是行,wcf是jxl格式
客户端将url编码: url = encodeURI(encodeURI(你的url)); Action中对参数解码: String new = URLDecoder.decode(old, "utf-8");
当连续对数据库进行查询操作时,出现如下异常: The driver was unable to create a connection due to an inability to establish the client portion of a socket. This is usually caused by a limit on the number of sockets imposed by the operating system. This limit is usually configurable. For Unix-based platforms, see the ma ...

JS显示隐藏控件

    博客分类:
  • JS
用JavaScript隐藏控件的方法有两种,分别是通过设置控件的style的“display”和“visibility”属性。当style.display="block"或style.visibility="visible"时控件或见,当style.display="none"或style.visibility="hidden"时控件不可见。不同的是“display”不但隐藏控件,而且被隐藏的控件不再占用显示时占用的位置,而“visibility”隐藏的控件仅仅是将控件设置成不可见了,控件仍然占俱原来的位置。 fu ...
public static void main(String[] args){ ArrayList<String> al = new ArrayList<String>(); al.add("a"); al.add("b"); al.add("c"); Set<String> set = new HashSet<String>(); set.add("a"); set.add("b"); set.add("c ...

select控件操作

    博客分类:
  • JS
<script> // 1.判断select选项中 是否存在Value="paraValue"的Item        function jsSelectIsExitItem(objSelect, objItemValue) {            var isExit = false;            for (var i = 0; i < objSelect.options.length; i++) {                if (objSelect.options[i].value == objItemValue) {     ...
Java->Installed JRES 双击使用的jre Default VM里添:-Xms512m -Xmx512m 请查看图片!
    MyEclipse的updating indexes功能,看着并不起眼,但是如果机器的资源比较紧张的时候(尤其是用maven的时候),就会带来不少的麻烦,因为在updating indexes的时候,机器会变得很卡(我是每次都被卡死),也不知道MyEclipse在进行这项操 ...
MySQL安装出错解决方法 The security settings could not be applied to the database because the connection has failed with the following error. Error Nr.1045 Access denied for user ‘root’@'localhost’(using password:YES) If a personal firewall is running on your machine,please make sure you have opened the TCP ...
Global site tag (gtag.js) - Google Analytics