<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    置頂隨筆

    很奇怪,自從我上次拆了一下內(nèi)存條 后,有時(shí)我打開IE時(shí)會(huì)彈出一個(gè)錯(cuò)誤對(duì)話框,發(fā)出一下提示:
    1:
    出現(xiàn)了運(yùn)行時(shí)間錯(cuò)誤。是否要進(jìn)行調(diào)試?
     行:1616
    錯(cuò)誤:未結(jié)束的字符串常量

    2:出現(xiàn)了運(yùn)行時(shí)間錯(cuò)誤。
    是否要調(diào)試?
    行:1443
    錯(cuò)誤:缺少對(duì)象

    這是什么原因?qū)е翴E發(fā)出這樣的錯(cuò)誤警告呢?剛開始我還以為是我的內(nèi)存條壞了,一位是我內(nèi)存條上的存儲(chǔ)顆粒被我搞掉了一些,因?yàn)樯洗挝铱吹絻?nèi)存上有許多灰塵,就用布去抹灰塵的。
    其實(shí)是我把的IE中“Internet選項(xiàng)”中的“高級(jí)”下的 “禁止腳本調(diào)試Internet Explorer” 這一欄的勾去掉了,那就代表我允許調(diào)試IE了,所以腳本在調(diào)試IE時(shí)就報(bào)錯(cuò)了。
    為了避免這種情況,應(yīng)該將一項(xiàng)勾上

    posted @ 2008-12-08 22:42 Running 閱讀(269) | 評(píng)論 (0)編輯 收藏

    2008年12月17日

     

     

    錯(cuò)誤代號(hào)       十六進(jìn)制      錯(cuò)誤類型

    1001           0x800A03E9   內(nèi)存不足

    1002           0x800A03EA   語法錯(cuò)誤

    1003           0x800A03EB   需要“ : ”

    1004           0x800A03EC   需要“ ; ”

    1005           0x800A03ED   需要“ ( ”

    1006           0x800A03EE   需要“ ) ”

    1007           0x800A03EF   需要“ [ ”

    1008           0x800A03F0   需要“ ] ”

    1009           0x800A03F1   需要“{ ”

    1010           0x800A03F2   需要“ } ”

    1011           0x800A03F3   需要標(biāo)志符

    1012           0x800A03F4   需要“ / ”

    1013           0x800A03F5   無效數(shù)

    1014           0x800A03F6   非法字符

    1015           0x800A03F7   字符串常量未結(jié)束

    1016           0x800A03F8   注視未結(jié)束

    1018           0x800A03FA   函數(shù)外有"return"語句

    1019           0x800A04FB   在循環(huán)外 不能有“break“

    1020           0x800A05FC   在循環(huán)外 不能有“continue“

    1023           0x800A03FF   需要十六制數(shù)

    1024           0x800A0400   需要"while"

    1025           0x800A0401   標(biāo)簽定義重復(fù)

    1026           0x800A0402   未找到標(biāo)簽

    1027           0x800A0403   一條"switch"語句中只能有一個(gè)"default"

    1028           0x800A0404   需要標(biāo)識(shí)符,字符串或者數(shù)字

    1029           0x800A0405   需要"@end"

    1030           0x800A0406   條件編譯已關(guān)閉

    1031           0x800A0407   需要常數(shù)

    1032           0x800A0408   需要"@"

    1033           0x800A0409   需要 "catch"

    1034           0x800A040A   需要"var"

    1035          0x800A041B   "Throw" 的后面必須跟一個(gè)表達(dá)式,且在同一

                                       源代碼行上

    posted @ 2008-12-17 22:37 Running 閱讀(266) | 評(píng)論 (0)編輯 收藏

    2008年12月11日

    /**
     *
     */
    package test;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    /**
     * @author huangqin
     *
     */
    public class QuestString {

     private int curPage;//當(dāng)前頁數(shù)
     private int maxPage;//最大頁數(shù)
     private int maxRowCount;//總記錄數(shù)
     private int pageSize=2;//每頁顯示的記錄數(shù)
     private DBResult db;//記錄集對(duì)象
     private String httpfile;//當(dāng)前地址欄的文件,即具體的jsp文件
     private String cif;//選擇的查詢字段
     private String ccif;//選擇的查詢運(yùn)算符
     private String qvalue;//查詢關(guān)鍵字
     private String countSql=null;//用來存儲(chǔ)select count(*)。。。。語句
     private String topSql=null;//用來存儲(chǔ)select top2.。。。語句
     private String nowPage=null;//初始化當(dāng)前頁curPage變量,即獲得當(dāng)前頁的具體頁號(hào)
     private String str_parameter;//在做翻頁時(shí),傳遞除pages外的其他參數(shù)
     private String andor;//查詢的與/或條件
     private String sdate;//查詢其實(shí)時(shí)間
     private String edate;//查詢結(jié)束時(shí)間
     private String paixu;//排序方法
     private String orderby;//排序條件
     public QuestString() throws Exception{
      db=new DBResult();
     }
     public void setCurPage(int curPage){
      this.curPage=curPage;
     }
     public void setQuerySql(String httpfile,String pages,String strCount){
      this.httpfile=httpfile;
      this.nowPage=pages;
      this.countSql=strCount;
      try{
       querySql(countSql);
      }catch(Exception e){
       e.printStackTrace();
      }
     }
     public  void querySql(String countSql)throws SQLException {
      // TODO Auto-generated method stub

      if(this.nowPage==null){
       this.curPage=1;
      }else{
       this.curPage=Integer.parseInt(this.nowPage);
       if(this.curPage<1){
        this.curPage=1;
       }
      }
      ResultSet rsCount=db.getResult(countSql);
      if(rsCount.next()){
       this.maxRowCount=rsCount.getInt(1);//獲取記錄總數(shù),即所要查詢記錄的總行
      }
      //余數(shù)為0則總頁數(shù)=兩數(shù)整除的結(jié)果,若不為0則總頁數(shù)=兩數(shù)整除結(jié)果+1
      this.maxPage=(this.maxRowCount%this.pageSize==0)?(this.maxRowCount/this.pageSize):
       (this.maxRowCount/this.pageSize+1);
      if(this.curPage>this.maxPage){
       this.curPage=this.maxPage;
      }
      rsCount.close();
     }
     public String pageFooter()
     {
      String str="<form action="+this.httpfile+"name=formBean method=post>";
      int prev=this.curPage-1;//前一頁
      int next=this.curPage+1;//后一頁
      
      str=str+"<font style='font-size:10pt'>總計(jì)<font color='red'>"+this.getMaxRowCount()+
      "</font>條記錄,"+"“共<font color='red'>"+this.getMaxPage()+"</font>頁”";
      str=str+" ”<font color='red'>"+this.pageSize+"</font>條/頁”當(dāng)前頁<font color='red'>"+
      this.getMaxPage()+"</font>頁&nbsp;";
      if(this.curPage>1)
       str=str+"<A href="+this.httpfile+"?pages=1"+str_parameter+">首頁</A>";
      else
       str=str+"首頁";
      if(this.curPage>1)
       str=str+"<A href="+this.httpfile+"?pages="+prev+str_parameter+">上一頁</A>";
      else
       str=str+"上一頁";
      if(this.curPage<this.maxPage)
       str=str+"<A href="+this.httpfile+"?pages="+next+str_parameter+">下一頁</A>";
      else
       str=str+"下一頁";
      if(this.maxPage>1&&this.curPage!=this.maxPage)
       str=str+"<A href="+this.httpfile+"?pages="+this.maxPage+str_parameter+">尾頁</A>";
      else
       str=str+"尾頁</font>";
      //在頁面跳轉(zhuǎn)間設(shè)置隱藏表單,來保存不同的請(qǐng)求
      str=str+"轉(zhuǎn)到<input type='text' name='pages' size=2>頁"+
      "<input type='hidden' name='ccif' value='"+this.ccif+"'>" +
        "input type='hidden' name='cif' value='"+this.cif+
        "'><input type='hidden' name='qvalue' value='"+this.qvalue+
        "'><input type='hidden' name=andor' value='"+this.andor+
        "'><input type='hidden name='sdate' value='"+this.sdate+
        "'><input type='hidden name='edate' value='"+this.edate+
        "'><input type='hidden' name='orderby' value='"+this.orderby+
        "'><input type='hidden' name='paixu' value='"+this.paixu+
        "'><input type='submit' name='submit' value='go'></form>";
      return str;
     }
     private int getMaxPage() {
      // TODO Auto-generated method stub  
      return maxPage;
     }
     private int getMaxRowCount() {
      // TODO Auto-generated method stub
      return maxRowCount;
     }
     //根據(jù)不同條件獲取不同查詢前N條的SQL語句
     public String getString(String table){
      
      if(ccif.equals("="))
      {
       String strSql="select top"+this.pageSize*this.curPage+"*from"+table+"where"+
       ""+cif+"="+"'"+qvalue+"'";
       return strSql;
      }
      else if(ccif.equals("LIKE"))
      {
       String strSql="select top"+this.pageSize*this.curPage+"*from"+table+
       "where"+""+cif+""+"like"+""+"'%"+qvalue+"%'";
       return strSql;
      }
      else if(ccif.equals("ALL")){
       String strSql="select top"+this.pageSize*this.curPage+"*from"+table;
       return strSql;
      }
      else if(ccif.equals("<"))
      {
       String strSql="select top"+this.pageSize*this.curPage+"*from"+table+
       "where"+cif+"<'"+qvalue+"'";
       return strSql;
      }
     return null;
     
     }
     //根據(jù)不同條件獲取不同的計(jì)算記錄總數(shù)的SQL語句
     public String getCount(String table){
      
      if(ccif.equals("=")){
       String strSql="select count(*) from"+table+"where"+""+cif+"="+"'"+qvalue+"'";
       return strSql;
      }
      else if(ccif.equals("LIKE")){
       String strSql="select count(*) from"+table+"where"+""+cif+""+"like"+""+"'%"+qvalue+"%'";
       return strSql;
      }
      else if(ccif.equals("ALL")){
       String strSql="select count(*) from"+table;
       return strSql;
      }
      else if(ccif.equals("<")){
       String strSql="select count(*) from "+table+"where"+cif+"<'"+qvalue+"'";
       return strSql;
      }
      return null;
      
     }
     //根據(jù)不同條件和不同的起始日期和結(jié)束日期獲得不同的計(jì)算記錄總數(shù)的SQL語句
     public String getDateCount(String table){
      if(ccif.equals("=")){
       String strSql="select count(*) from"+table+"where"+""+cif+"="+"'"+qvalue+"'"+
       andor+"xsdate between'"+sdate+"'and'"+edate+"'";
       return strSql;
      }
      else if(ccif.equals("LIKE")){
       String strSql="select count(*) from"+table+"where"+""+cif+""+"like"+""+"'%"+qvalue+"%'"+
       andor+"xsdate between'"+sdate+"'and'"+edate+"'";
       return strSql;
      }
      else if(ccif.equals("ALL")){
       String strSql="select count(*) from"+table;
       return strSql;
      }
      
      return null;
     }
     //根據(jù)不同條件和不同的起始日期和結(jié)束日期獲得不同的查詢,前N條的SQL語句
     public String getDateString(String table){
      if(ccif.equals("="))
      {
       String strSql="select top"+this.pageSize*this.curPage+"*from"+table+"where"+
       ""+cif+"="+"'"+qvalue+"'"+andor+"xsdate between'"+sdate+"'and'"+edate+"'";
       return strSql;
      }
      else if(ccif.equals("LIKE"))
      {
       String strSql="select top"+this.pageSize*this.curPage+"*from"+table+
       "where"+""+cif+""+"like"+""+"'%"+qvalue+"%'"+andor+"xsdate between'"+sdate+
       "'and'"+edate+"'";
       return strSql;
      }
      else if(ccif.equals("ALL")){
       String strSql="select top"+this.pageSize*this.curPage+"*from"+table;
       return strSql;
      }
      
      return null;
     }
     //子查詢中得到從起始日期到結(jié)束日期這段時(shí)間所有不重復(fù)的spid(商品id),并返回不重復(fù)的spid的總數(shù)
     //其中spid是一個(gè)數(shù)據(jù)庫(kù)中一張表中的一個(gè)屬性(一列),元組(一行)
     public String getOrderCount(String table){
      String strSql="select count(*) from (select spid from"+table+"where xsdate between'"+
      sdate+"'and'"+edate+"'group by spid) as aa";
      return strSql;
      
      
     }
     public String getOrderString(String table){
      String strSql="select top"+this.pageSize*this.curPage+"* from tb_brand a inner join" +
        "(select spid,sum(sl)as sl,sum(je)as je"+
        "from "+table+"where xsdate between'"+sdate+"'and'"+edate+"'group by spid)"+
        "as b"+"on a.id=b.spid order by"+orderby+""+paixu;
        return strSql;
      

     }
    }

    posted @ 2008-12-11 20:54 Running 閱讀(482) | 評(píng)論 (1)編輯 收藏
     

    package test;
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.DataSource;

    /**
     * @author huangqin
     *
     */
    public class DBConn {
     public static synchronized Connection getConnection() throws Exception{
      try{
       Context initCtx=new javax.naming.InitialContext();//獲取JNDI初始上下文對(duì)象
       //在JNDI命名空間java:comp/env段里獲得上下文對(duì)象
       Context envCtx=(Context)initCtx.lookup("java:comp/env");
       DataSource ds=(DataSource)envCtx.lookup("jdbc/xscj");
       return ds.getConnection();
      }catch(SQLException e){
       throw e;
      }catch(NamingException ex){
       throw ex;
      }
     }

    }

    package test;
    import java.sql.*;
    import test.DBConn;
    /**
     * @author huangqin
     *
     */
    public class DBResult {

     private Connection con;
     public DBResult() throws Exception{//一定要拋出異常,否則報(bào)錯(cuò)
      this.con=DBConn.getConnection();
     }
     public ResultSet getResult(String sql){
      try{
       Statement stmt=con.createStatement();
       ResultSet rs=stmt.executeQuery(sql);
       return rs;
      }catch(Exception e){
       return null;
      }
     }
     public void doExecute(String sql){
      try{
       Statement stmt=con.createStatement();
       stmt.executeQuery(sql);
      }catch(Exception e){}
     }
     public PreparedStatement getPreparedStatement(String sql){
      try{
       PreparedStatement pstmt=con.prepareStatement(sql);
       return pstmt;
      }catch(Exception e){
       return null;
      }
     }
     public void closeConn(){
      try{
       this.con.close();
      }catch(Exception e){
       e.printStackTrace();
      }
     }
    }

    posted @ 2008-12-11 20:53 Running 閱讀(174) | 評(píng)論 (0)編輯 收藏
     

    import java.util.*;
    /**
     * @author huangqin
     *
     */
    public class ShowTime {
    private Date date=null;
    private int yy;
    private int mm;
    private int dd;
    private String sy;
    private String sd;
    private String sm;
    public ShowTime(){
     date=new Date();
     yy=date.getYear()+1900;
     mm=date.getMonth()+1;
     dd=date.getDate();
     sy=String.valueOf(yy);
     sm=String.valueOf(mm);
     sd=String.valueOf(dd);
     if(sm.length()==1){
      sm="0"+sm;}
     if(sd.length()==1){
      sd="0"+sd;
     }
    }
     public String getDateString(){
      return sy+sm+sd;
     }
     public String getDate(){
      return sy+"-"+sm+"-"+sd;
     }
    }

     

    posted @ 2008-12-11 20:51 Running 閱讀(325) | 評(píng)論 (0)編輯 收藏

    2008年12月10日

    數(shù)據(jù)庫(kù)連接池的解決方案:再應(yīng)用程序啟動(dòng)時(shí)建立足夠的數(shù)據(jù)庫(kù)連接,并將這些連接組成一個(gè)
    連接池,使應(yīng)用程序動(dòng)態(tài)的對(duì)池中的連接進(jìn)行申請(qǐng)、使用和釋放。對(duì)于多余連接池中連接數(shù)的并發(fā)請(qǐng)求,需要再請(qǐng)求隊(duì)列中排隊(duì)等待,并且應(yīng)用程序可以根據(jù)池中連接的使用率,動(dòng)態(tài)增加或減少池中的連接數(shù)。

    數(shù)據(jù)源接口java.sql.DataSource的一些方法如下:

    getConnection():獲得一個(gè)Connection對(duì)象。
    getConnection(String username,String password);獲得一個(gè)帶有用戶名和密碼的Connction對(duì)象。
    getLongWriter();從DataSource中獲得LongWriter對(duì)象,它是PrinterWriter的實(shí)例
    setLongWriter(PrintWriter out):設(shè)置Datasource的LongWriter
    getLOginTimeout():獲得DataSource嘗試連接數(shù)據(jù)庫(kù)的最大時(shí)間
    SetLoginTimeout(int seconds):設(shè)置DataSource嘗試連接數(shù)據(jù)庫(kù)的最大時(shí)間

    posted @ 2008-12-10 22:05 Running 閱讀(121) | 評(píng)論 (0)編輯 收藏
     

    //其中default.htm默認(rèn)已經(jīng)存在
    <script language="javascript" >
    function intro(){
    if((navigator.appVersion.indexOf("Mac")!=-1)&&
    (navigator.userAgent.indexOf("MSIE")!=-1)&&
    (parseInt(navigator.appVersion)=4)){
    skip()
    }else{
    popup()
    }
    }
    function skip(){
    location.href="default.htm";
    }
    function popup(){
    version=parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,
    navigator.appVersion.length));
    if(version>=4)
    version=parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,
    navigator.appVersion.length));
    if(version>=4){
    if(navigator.appName=="Netscape"){
    Hello=window.open("default.htm","Hello","scrollbars");
    Hello.focus();
    }
    if(navigator.appName=="Microsoft Internet Explorer"){
     window.open("default.htm","screen","fullscreen==yes");
     }
     else{
     location.href="default.htm";
     }
     }
     </script>

     

    posted @ 2008-12-10 21:48 Running 閱讀(471) | 評(píng)論 (0)編輯 收藏

    2008年12月9日

    import java.util.Date;
    import java.text.SimpleDateFormat;
    import java.text.ParseException;

    public class MyString
    {
    //對(duì)字符串進(jìn)行GBK編碼
    public static String toChinese(String strvalue){
    try{
    if(strvalue=null){
    return ;;;
    }
    else{
    strvalue=new String(strvalue。getBytes("ISO8859_1"),"GBK");
    return strvalue;
    }
    }catch(Exception e){
    return "";
    }
    }
    }
    //對(duì)輸入的字符串過濾sql注入
    public static String StringtoSql(String str){
    str=nullToString(str,"");
    try{
    str=str.trim().replace("\",(char)1);
    }catch(Exception e){
    return "";
    }
    return str;
    }
    //讀取數(shù)據(jù)庫(kù)中數(shù)據(jù)時(shí),過濾sql注入
    public static  String SqltoString(String str){
    str=nullToString(str,"");
    try{
    str=str.replace((char)1,"\").trim();
    }catch(Exception e){
    return "";
    }
    return str;
    }
    //對(duì)字符串進(jìn)行Unicode編碼
    public static String toUnicode(String strvalue){
    try{
    if(strvalue==null){
    return null;
    }else{
    strvalue=new String(strvalue.getBytes("GBK"),"ISO8895_1");
    return strvalue;
    }
    }catch(Exception e){
    return "";
    }
    }
    //判斷當(dāng)前時(shí)間
    public static boolean compareNowTime(String date){
    SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
    Date d=null;
    try{
    d=format.parse(date);
    }catch(ParseException ex){
    }
    if(System.currentTimeMillis()-259200000<d.getTime()){
    return true;
    }
    return false;
    }
    //判斷用戶輸入的字符是數(shù)字還是字母
    public static boolean isID(String str){
    if(str!=null&&str.length()>0){
    if(str.charAt(0)<57&&str.charAt(0)>48)  return false;
    for(int i=0;i<str.length();i++){
    if(str.charAt(i)<65&&str.charAt(i)>57||str.charAt(i)>90&&str.charAt(i)<97&&
    str.charAt(i)!=95||str.charAt(i)>122||str.charAt(i)<48){
    return false;
    }
    }
    return true;
    }
    return false;
    }
    //對(duì)輸入數(shù)據(jù)中的HTML字符進(jìn)行轉(zhuǎn)換
    public static final String escapeHTML Tags(String input){
    if(input==null||input.length()==0){
    return input;}
    StringBuffer buf=new StringBuffer(input.length());
    char ch='';
    for(int i=0;i<input.length();i++){
    ch=input.charAt(i);
    if(ch=='<'){
    buf.append("&lt;");
    }else if(ch=='>'){
    buf.append("&gt;");
    }else{
    buf.append(ch);  }
      }
    return buf.toString();
    }
    //對(duì)SQL語句中輸入的空值進(jìn)行處理
    public static final String SqlToLink(String str){
    str=StringUtils.nullToString(str,"");
    if("".equals(str)){
    str="LIKE '%'";
    }else{
    str=("LIKE '%"+str+"%'");}
    return str;
    }
    }

    posted @ 2008-12-09 22:02 Running 閱讀(355) | 評(píng)論 (0)編輯 收藏

    2008年12月8日

    假定我要處理的form中的內(nèi)容如下(在此我簡(jiǎn)化了一下):
    <form name="myform">
    <input type="text" name="goodsName" size="8"><br>
    <input type="file" name="picture" ><br>
    <input type="text" name="price" size="5"><br>
    <input type="submit" name="submit" value="submit">&nbsp;&nbsp;
    <input type="reset" name="reset" value="reset">
    </form>

    下面是用JS來驗(yàn)證輸入數(shù)據(jù)的合法性:

    <script language="javascript">
    function mycheck(){
    if(myform.goodsName.value==""){
    alert("請(qǐng)輸入商品姓名");
    myform.goodsName.focus();
    return;
    }
    if(myform.picture.value==""){
    alert("請(qǐng)輸入圖片文件的路徑");
    myform.picture.focus();
    return;
    }
    if(myform.price.value==""){
    alert("請(qǐng)輸入價(jià)格");
    myform.price.focus();
    return;
    }
    myform.submit();
    }
    </script>

    posted @ 2008-12-08 23:09 Running 閱讀(820) | 評(píng)論 (1)編輯 收藏

    2008年12月7日

    public static Connection getConnection(){

    Connection conn=null;
    private  static    String dbUrl="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=db_shop”;
    private static   String dbUser="sa";
    private static String dbPwd="";
    private static String dbClassName=“com.microsoft.jdbc.sqlserver.SQLServerDriver";
        //   loadProperty();//通過loadProperty方法讀取properties文件中的數(shù)據(jù)庫(kù)連接所需信息
                try{
                            Class.forName(dbClassName).newInstance();
                            conn=DriverManager.getConnection(dbUrl,dbUser,dbPwd);
    }catch(Exception ee){
               ee.printStackTrace();
    }
    if(conn=null){
    System.err.println("警告:DbConnectionManager.getConnection() 獲得數(shù)據(jù)庫(kù)連接失敗。\r\n\r\n連接;類型:"+dbClassName+"\r\n連接位置:"+dbUrl+"\r\n用戶/密碼"+dbUser+"/"+dbPwd);
    }
    return conn;
    }


    public ResultSet  executeQuery(String sql){
    try{
    conn=getConnection();
    Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    rs=stmt.executeQuery(sql);
    }catch(SQLException ex){
    System.out.println(ex.getMessage());
    }
    return rs;
    }



    public int executeUpdate(String sql){
    int result=0;
    try{
    conn=getConnection();
    stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    result=stmt.executeUpdate(sql);
    }catch(SQLException ex){
    result =0;
    }try{
    stmt.close();
    }catch(SQLException ex1){
    return result;
    }

    public void close(){
    try{
    if(rs!=null){
    rs.close();
    }
    }catch(Exception e){
    e.printStackTrace(System.err);}
    try{
    if(stmt!=null){
    stmt.close();
    }
    }catch(Exception e){
    e.printStackTrace(System.err);
    }
    try{
    if(conn!=null){
    conn.close();
    }
    }catch(Exception e){
    e.printStackTrace(System.err);
    }
    }
    }
    posted @ 2008-12-07 23:31 Running 閱讀(159) | 評(píng)論 (0)編輯 收藏
     
    public String convertStr(String string){
    if(string==null){
               str1="";
    }else
                {
                           try{
                                             string=string.replaceAll("<","&It;");
                                              string=string.replaceAll(">",“&gt”);
                                               string=string.replaceAll("","&nbsp;");
                                              string=string.replaceAll("\r\n","<br>");
                                        }catch(Exception e){
                                    e.printStackTrace(System.err);
                             }
                      }
    return string;
    }
    posted @ 2008-12-07 22:48 Running 閱讀(3676) | 評(píng)論 (2)編輯 收藏
    僅列出標(biāo)題  
     
    主站蜘蛛池模板: 亚洲日韩乱码中文无码蜜桃| 亚洲国产中文在线视频| 亚洲精品黄色视频在线观看免费资源| 国产传媒在线观看视频免费观看| 国产亚洲视频在线播放大全| 亚洲А∨精品天堂在线| 一级特黄a免费大片| 国产亚洲一区二区手机在线观看| 久久香蕉国产线看免费| 国产亚洲国产bv网站在线| 成人AV免费网址在线观看| 丰满亚洲大尺度无码无码专线| 国产亚洲人成A在线V网站| 99久久精品免费视频| 亚洲精品自偷自拍无码| 免费一级做a爰片性色毛片| a在线观看免费网址大全| 亚洲欧洲精品久久| 女人18毛片特级一级免费视频 | 亚洲成AV人片在| 综合在线免费视频| 牛牛在线精品观看免费正 | 免费国产a理论片| 亚洲日韩一区二区三区| 亚洲乱码一二三四区国产| 日韩精品一区二区亚洲AV观看| 成人免费视频88| 在线成人精品国产区免费| sss日本免费完整版在线观看| 久久水蜜桃亚洲AV无码精品| 亚洲情a成黄在线观看动漫尤物| 永久免费bbbbbb视频| 无码人妻丰满熟妇区免费| 国产亚洲日韩在线a不卡| 亚洲精品无码专区在线播放| 亚洲日韩国产精品乱-久| 亚洲va久久久噜噜噜久久狠狠 | 亚洲一区二区三区免费视频| 中文字幕第13亚洲另类| 亚洲乱码日产精品a级毛片久久| 免费H网站在线观看的|