`
txin0814
  • 浏览: 218360 次
  • 性别: Icon_minigender_1
  • 来自: 湖南
社区版块
存档分类
最新评论
文章列表
public class ParseXml extends DefaultHandler { private String tagValue; long starttime; long endtime; // 开始解析XML文件 public void startDocument() throws SAXException { //可以在此初始化变量等操作 System.out.println("~~~~解析文档开始~~~"); starttime=System.nanoT ...
当@status为2时 我需要对 createDate 字段进行升序排序 当@status为3时 我需要对 createDate 字段进行降序排序 select *from 表名 a order by (case when @status=2 then createdate when @status=3 then GETDATE()-createdate end)

TEXTAREA去空格问题

    博客分类:
  • web
<TextArea>提交表单后显示的内容前出现大段的空格,使用trim()也没有效果,其实原因很简单。 <TextArea>控件没有value属性,文本内容一般都是这样显示<TextArea>文本信息</TextArea>。但如果你的代码是这样写的<TextArea>             .....文本信息..... </TextArea>,那么肯定就会出现上述问题。去掉文本前的空格只需要改成这样,<TextArea>文本信息</TextArea>。记住千万不要将首尾标签换行,不然它会将/n ...
示例代码如下: 引用 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>K2046.TableSorter</title> <style type="te ...
ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(request.getSession().getServletContext()); net.xxx.xxx.xx.service.XXService xService = (net.xxx.xxx.xx.service.XXServicee)ctx.getBean("xService");
<form name='form1' id='form1' action='/xbcw/cw/xx_xx.action' method='post'> <input type="button" id="btnSubmit" name="btnSubmit" value="保存" onclick="addKp()" class="Button2" style="width:60px;" /> <input type=&q ...
给有需要用到的娃。
推荐几个不错的Flex学习网站     还在为学Flex找不到较好的资源发愁吗?大象给你推荐几个还不错的网站,保证不是骗点击。^_^     1、http://www.adobe.com/cn/devnet/     adobe中文开发网站,主页信息很多,我们关注其中的Flex和ActionScript。如果你喜欢桌面应用,AIR肯定有你感兴趣的东西。对于Flex的学习,官方网站当然是第一选择。     2、http://blog.flexexamples.com/     Flex例子的海洋,主要以组件如何使用或者类的某某属性如何使用举例说明。minidx中的绝大部分都是翻译这里的文章。英文 ...
右击需要导出的数据库->Tasks->Generate Scripts..->next->找到talbe/view options下的script data 默认为false 改为true ->后面的就明白了
一般建议在cmd命令行执行ant命令,可以把路径cd到build.xml文件的路径,直接执行ant 当JAVAC的文件过多时就会出现java.lang.OutOfMemoryError: Java heap space 2,在ant安装路径例如\apache-ant-1.7.1\bin\ant.bat文件中的开头@echo off后添加 set ANT_OPTS=-Xms128m -Xmx256m -verbosegc
公司最近要求我将本地项目编译,并发布到服务器上,在网上看了很久,只找到了有关ANT相关操作的,现将代码贴出希望到时候有人需要. 我还有一个问题,希望名位大虾帮我解决,如何利用ANT从TFS上自动获取项目源码? <?xml version="1.0" encoding="utf-8"?> <project name="xbcw" default="deploy"> <!-- <property name="dist" value="E ...
Open Eclipse. Note  These installation instructions assume that you have Eclipse 3.5. On other versions of Eclipse, the steps might have different menu items, but the process is the same. On the Help menu, click Install New Software. The Install dialog box appears. Click Add. The Add Site dia ...
    最近刚上班,在公司每天除了学习业务以外就是打打酱油,利用空余时间整理了几个排序算法 /** * @author txin0814 E-mail:txin0814@sina.com * @version 1.0 * @date Apr 1, 2011 2:28:06 PM * @description 排序类的 基类 */ public abstract class BaseSorter<E extends Comparable<E>> { public abstract void sort(E[] array,int from ...
jQuery学习笔记一 $("div:first").css("background","red");      //选择第一个DIV元素 $("div:last").css("background","red");       //选择最后一个DIV元素 $("div:not(.one)").css("background"," ...
Global site tag (gtag.js) - Google Analytics