当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: how do vb application pass the value to parameter in crystal report 8.5. i use the crystal report activex control. if this problem is solved , i give him 100 points immediately. thanks. ......
    摘要: 为中国争口气! 投中国的长城(the great wall of china )和布达拉宫(the potala palace, lhasa )一票,今天距离世界七大奇迹选举只剩54 天了,但迄今为止,参加投票的中国人只占投票人数的0.59, 而秘鲁却有21.98, 中国网民只要每人投一票,都比秘鲁多十几倍! ?中国只有长城和布达拉宫在侯选之列。请参加投票!如果长城和布达拉宫入选,那中国就......


多了一个“”怎么办

我在JSP中写到  
  <A   href=\"javascript:prelisten("+ringBeans[i].getRingName()+","+ringBeans[i].getRingCid()+")\">  
  到html显示时得到  
  <A   href="javascript:prelisten(Lets   Get   Loud,702103)">  
  这时因为Lets中也有“”所以报错,请问这应该如何处理呢?  
   
  可是用双引号的话“”能够通过,却会在空格的地方就断开,如上例中说的<A   href="javascript:prelisten(Lets   Get   Loud,702103)">  
  会显示为<A   href="javascript:prelisten(“Lets  
  后面就没有了!  
 

NO.1   作者: yzxasd

public   static   String   replaceString(String   mainString,   String   oldString,   String   newString)   {  
                  if   (mainString   ==   null)   {  
                          return   null;  
                  }  
                  if   (oldString   ==   null   ||   oldString.length()   ==   0)   {  
                          return   mainString;  
                  }  
                  if   (newString   ==   null)   {  
                          newString   =   "";  
                  }  
                  int   i   =   mainString.lastIndexOf(oldString);  
                  if   (i   <   0)   return   mainString;  
                  StringBuffer   mainSb   =   new   StringBuffer(mainString);  
                  while   (i   >=   0)   {  
                          mainSb.replace(i,   i   +   oldString.length(),   newString);  
                          i   =   mainString.lastIndexOf(oldString,   i   -   1);  
                  }  
                  return   mainSb.toString();  
          }  
   
  替换


    摘要: 我要处理的是word另存为html的文件,现在要对该htm文件进行减肥。我知道现在有很多这样的专门工具,但现在我必须要将这个减肥过程写到我的程序中去。 1.要将所有注视标签内容去掉。就是:<!--[……]-->如:< !- -[if gte mso 9]>…<![endif]-->这些标签和中间的内容去掉。 2.将文件中如<![if !vml]&g......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE