上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 1 /** 2 * 获得当前日期的前一天 3 */ 4 function getYestoday(date){ 5 var yesterday_milliseconds=date.getTime()-1000*60*60*24;//转换成毫秒后减去一天的毫秒数 6 // var yesterday = new Date(); 7 // yesterday.setTime(yesterday_milliseconds); 8 // 9 // var strYear = yesterday.getFullYear(); 10 // var ... 阅读全文
posted @ 2014-01-21 22:50 尐sんΙ頭 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 地址:http://spring.io/tools/ggtsSee All Versions可以下载更多版本,里面包含安装版和解压版 阅读全文
posted @ 2014-01-11 15:37 尐sんΙ頭 阅读(448) 评论(0) 推荐(0) 编辑
摘要: Exception in thread "main" org.json.JSONException: A JSONObject text must begin with '{' at character 1 of [data:[[.....] at org.json.JSONTokener.syntaxError(JSONTokener.java:450) at org.json.JSONObject.(JSONObject.java:179) at org.json.JSONObject.(JSONObject.java:326) at sun.refle 阅读全文
posted @ 2014-01-11 11:45 尐sんΙ頭 阅读(4305) 评论(0) 推荐(0) 编辑
摘要: 正文:在Groovy 1.8发布新闻中,提到Groovy增加了对JSON的支持。Dustin Marx在其博文中,讲述了这一功能的使用。用法真的很简单,创建一个JSON对象:import groovy.json.JsonBuilderdef json = new JsonBuilder()json.state{ capital "Denver" majorCities "Denver", "Colorado Springs", "Fort Collins"}println json看看结果!是不是很简单!在Debu 阅读全文
posted @ 2014-01-11 11:34 尐sんΙ頭 阅读(2876) 评论(0) 推荐(0) 编辑
摘要: 在创建如下代码时报出此错:TypeError: d.read is not a function 1 Ext.define('shebyxgl_sheb_model', { 2 extend: 'Ext.data.Model', 3 fields: [ 'shebid', 'shebname' ] 4 }); 5 var sheb_store = Ext.create('Ext.data.Store', { 6 model: 'shebyxgl_she_model',//model名称引用错误,少了 阅读全文
posted @ 2014-01-11 10:44 尐sんΙ頭 阅读(1542) 评论(0) 推荐(0) 编辑
摘要: 1 package com.web.test; 2 3 import java.text.ParseException; 4 import java.text.SimpleDateFormat; 5 import java.util.Calendar; 6 7 public class DateUtil { 8 9 public static void main(String[] args) throws ParseException {10 System.out.println(getNowTime());11 System.out.p... 阅读全文
posted @ 2014-01-09 15:10 尐sんΙ頭 阅读(520) 评论(0) 推荐(0) 编辑
摘要: url: http://localhost:8080/test/list?p=1&d=2014要获得所带参数p和d的值,方法如下:int p = Integer.parseInt(request.getParameter("p"));int d = Integer.parseInt(request.getParameter("d")); 阅读全文
posted @ 2014-01-09 11:18 尐sんΙ頭 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 方法1:1 xtype: 'fieldset',2 border: 0,3 title: "",4 items[{5 xtype: 'flash',6 url: 'Test.swf'7 }]url是你webapp的路径,这个方法需要swfobject.js文件,在你的html页面或是服务器页面中引用这个swfobject.js文件,记住这个url所找的路径是你webapp下的跟你的页面相同的文件夹下面的flash文件,在服务器中如果页面交demo,那么他所找的路径就是webapp/demo/Test.swf方法2: 1 xty 阅读全文
posted @ 2014-01-08 12:44 尐sんΙ頭 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.ibm.com/developerworks/cn/java/j-pg05199/代码示例:构建xml文件: 1 def static createXmlFile(){ 2 def sw = new StringWriter(); 3 def xml = new groovy.xml.MarkupBuilder(sw); 4 xml.DataObject{ 5 def i = 0, j = 0; 6 while(i35 """;36 file.write(xmlString + sw.toS... 阅读全文
posted @ 2014-01-07 10:32 尐sんΙ頭 阅读(2473) 评论(0) 推荐(0) 编辑
摘要: 1、拼接字符串1)可以使用“||”来拼接字符串1 select '拼接'||'字符串' as str from dual 2)通过concat()函数实现1 select concat('拼接', '字符串') as str from dual 注:oracle的concat函数只支持两个参数的方法,即只能拼接两个参数,如要拼接多个参数则嵌套使用concat可实现,如:1 select concat(concat('拼接', '多个'), '字符串') from dual 2、截取字 阅读全文
posted @ 2014-01-06 13:20 尐sんΙ頭 阅读(160814) 评论(7) 推荐(3) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页