上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 29 下一页

2012年11月24日

java 中常用类的常用方法

摘要: String :substring(int beginIndex,int endIndex) 返回字符串 索引从零开始,"hamburger".substring(4, 8) returns "urge",返回的是从beginIndex到endIndex - 1 indexOf(int ch) 返回 int 返回指定字符在此字符串中第一次出现处的索引,如果有就是索引,没有返回-1, "hamburger".indexOf('k') ,返回-1 indexOf(int ch, int fromIndex) 返回 int 阅读全文

posted @ 2012-11-24 18:52 lovebeauty 阅读(246) 评论(0) 推荐(0) 编辑

tomcat 中部署java web项目

摘要: 1.静态部署(服务器启动之前部署) a.将项目放在webapps下,就可以了 b.更改$CATALINA_HOME\conf\server.xml文件,在<host>标签内添加<Context>标签,内容如下:<Context docBase="D:\javaspace\sfa\WebRoot" reloadable="false" path="/sfa123"/> ,不需要将文件放置webapp下,其中reloadable="false"表示当应用程序中的内容发生更改之后服务器 阅读全文

posted @ 2012-11-24 00:43 lovebeauty 阅读(8563) 评论(0) 推荐(0) 编辑

2012年11月22日

防止重复提交_提交后禁用提交按钮、图片、超链接

摘要: View Code 两种表单提交方式,一种是普通按钮的提交,一种是submit的按钮提交View Code 图片也可以提交,用法跟submit按钮一模一样 "> 登录 用户名: 密码: 用户名:... 阅读全文

posted @ 2012-11-22 23:36 lovebeauty 阅读(620) 评论(0) 推荐(0) 编辑

2012年11月20日

oracle 不支持 =和!=

摘要: -- Created on 2012/11/20 by JWW declare -- Local variables here i integer := 2; j integer := 2; k varchar2(60); op varchar2(45);begin -- Test statements here k := ''; if (i = j and k = '') then --能不能输出 op := 'k = ""有结果'; else op := 'k is null有结果'; end if;end 阅读全文

posted @ 2012-11-20 23:37 lovebeauty 阅读(537) 评论(0) 推荐(0) 编辑

javascript -window与document 待整理

摘要: window对象和document对象的区别一般来讲,一个window里就是一个document,但是,iframe里面也可以装个document,在iframe里面就有区别了alert(document.location===window.location);//true不要混淆Window对象的location属性和Document对象的location属性。前者引用一个Location对象,而后者只是一个只读字符串,并不具有Location对象的任何特性。document.location与document.URL是同义的,后者在JavaScript1.1中是该属性的首选名称(因为这样避 阅读全文

posted @ 2012-11-20 00:30 lovebeauty 阅读(7385) 评论(2) 推荐(0) 编辑

2012年11月19日

oracle - 关于日期的函数

摘要: 不支持 :2013/4/21 24:00:00 格式 --2013/4/21 0:00:01 是属于4月22日(有点郁闷).当用到函数时,日期转换里面的格式化参数是不区分大小的,例如,Select to_char(t.vdate,'dd'),t.vdate From test_student t... 阅读全文

posted @ 2012-11-19 17:16 lovebeauty 阅读(329) 评论(0) 推荐(0) 编辑

j2EE 日期转换需记的

摘要: 获取时间:方法1Calendar calendar=Calendar.getInstance(); int year=calendar.get(Calendar.YEAR); int month=calendar.get(Calendar.MONTH)+1; int day=calendar.get... 阅读全文

posted @ 2012-11-19 16:59 lovebeauty 阅读(206) 评论(0) 推荐(0) 编辑

2012年11月15日

javascript与jquery等框架与从服务器返回的数据之间的加载顺序(待空余时间探索)

摘要: 1.jquery事件需要调用的原生态js方法需要写在它之前,否则可能造成事件失效 阅读全文

posted @ 2012-11-15 00:34 lovebeauty 阅读(182) 评论(0) 推荐(0) 编辑

2012年11月11日

json数据格式

摘要: (格式是大括号括起来,键值对的形式,键和值都要加上双引号,当值是数字类型的时候可以不加,但是不必要记这些,都加,就不复杂了)一个对象简单的格式:View Code { "firstName": "Brett" }一个对象复杂的版本:View Code { "programmers": [ { "firstName": "Brett", "lastName":"McLaughlin", "email": "aaaa" 阅读全文

posted @ 2012-11-11 17:20 lovebeauty 阅读(6836) 评论(0) 推荐(1) 编辑

2012年11月2日

jquery异常

摘要: 1.error syntax error , unrecognized :[name=productname[]]解决方法:1. jquery1.7.1不支持,将你的jquery版不能换成1.4.22.不换版本,将选择器换成如下 $("input[name='Productname[]']"),即加上引号,将productname[]作为一个整体传给name 阅读全文

posted @ 2012-11-02 12:22 lovebeauty 阅读(526) 评论(0) 推荐(0) 编辑

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 29 下一页

导航