`
chinachuner
  • 浏览: 63346 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
Javascript中为String对象添加    Trim()    方法     <script    language=Javascript>    //自己动手为string添加Trim     function   String.prototype.Trim()   {return    this.replace(/(^\s*)|(\s*$)/g,"");}    function    String.prototype.Ltrim(){return    this.replace(/(^\s*)/g,    "");}   ...
IE的setAttribute中与标准浏览器的有许多不同,主要表现在IE对setAttribute的功能上有些限制,就是不能用setAttribute来设定class、style于onclick等事件的值以及设置name属性,那这样就会导致setAttribute在IE浏览器里失去很多的用途!而在I ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML>  <HEAD>   <TITLE>JS计算日期段的天数 </TITLE>   <META NAME="Generator" CONTENT="EditPlus">   <META NAME="Author" CONTENT="">   <META NAM ...
Make sure the themes service is enabled and that you used the correct version of uxtheme.dll. Replace the files with following procedure: Login as a Administrator. Goto %systemroot%\System32 Right-click uxtheme.dll and click properties. Take ownership of the file and close dialogs. Do same for th ...
JSP: var xml_http,ado_stream;   function postBmp(){  ado_stream = new ActiveXObject("ADODB.Stream");  ado_stream.Type = 1;  ado_stream.Open();  ado_stream.LoadFromFile("D:\\1.bmp");   ado_stream.position = 0;  xml_http = CreateXmlHttpObj();  xml_http.open ...
1.InputStream ◇ 从流中读取数据: int read( ); //读取一个字节,返回值为所读的字节 int read( byte b[ ] ); //读取多个字节,放置到字节数组b中,通常读取的字节数量为b的长度,返回值为实际读取的字节的数量 int read( byte b[ ], int off, int len ); //读取len个字节,放置到以下标off开始字节数组b中,返回值为实际读取的字节的数量 int available( );   //返回值为流中尚未读取的字节的数量 long skip( long n ); //读指针跳过n个字节不读 ...
近有个项目下需要接收POST过来的XML数据包,在struts中的Action方法中,调用request.getInputStream() 发现无法读到任何数据。 以下是POST数据的程序代码: Java代码    URL url = new URL(urlBuf);            HttpURLConnection httpURLConnection = (HttpURLConnection) url                    .openConnection();            httpURLConnection.setDoOutput(true);       ...
http://dancewithnet.com/2009/06/14/activating-browser-modes-with-doctype/ 为了处理根据Web标准创作的网页和根据在20世纪90年代末流行的陈旧实践创作的网页,现代的Web浏览器实现了各种不同的引擎模式。本文说明了那些模式是什么以及如何触 ...
<div id="content">                 <form action="upload.php" method="post" enctype="multipart/form-data" target="upload_target" onsubmit="startUpload();" >                      <p id="f1_upload_process" ...
x:设置或者是得到鼠标相对于目标事件的父元素的外边界在x坐标上的位置。 clientX:相对于客户区域的x坐标位置,不包括滚动条,就是正文区域。 offsetx:设置或者是得到鼠标相对于目标事件的父元素的内边界在x坐标上的位置。 screenX:相对于用户屏幕。   <table border=1 cellpadding=15 cellspacing=15 style="position:relative;left:100;top:100">  <tr><td>  <div onclick="show()&qu ...
安装方法1、 比较简单方便 1、先装 wine,linux下安装ie首先需要安装wine。这个软件使用来在linux上运行windows程序的。官方网址为www.winehq.com 下载安装 2、 如果你已经有了wine的话那就可以直接: wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz 将 下载到你的当前目录 tar zxvf ies4linux-latest.tar.gz 解压 cd ies4linux-* 进 入 ./ies4linux ------- ...
1.打开HELP->MyEclipse Configuration Center,切换到SoftWare标签页。 2.点击Add Site 打开对话框,在对话框Name输入Svn,URL中输入:http://subclipse.tigris.org/update_1.6.x 3.在左边栏中找到Personal Site中找到SVN展开。将Core SVNKit Library和Optional JNA Library添加(右键Add to Profile),Subclipse下面的Subclipse Integration for Mylyn 3.0可以不添加 ...
sudo apt-get install subversion 2、检出文件(checkout)。 使用命令:svn co http://{svn repository url} /destination 然后系统会用当前的用户名登录,提示输入密码,如果第一次密码输入错误,会提示你输入用户名;输入正确后,就可以检出文件了。 3、Ubuntu SVN提交文件(commit)。 进入需要更新的目录,输入命令:svn commit -m path-to-commit,其中path-to-commit可以为空,成功后会提示更新后的版本号。 4、更新文件(update)。 svn upda ...
1,编辑源列表:~$  sudo vim /etc/apt/sources.list ,在最后 添加一行:deb http://archive.canonical.com/ lucid partner  ~$ sudo  apt-get update  ~$ sudo apt-get install sun-java6-jdk 正在设定 sun-java6-jre 不动了…… 怎么办?”确定“选项明明就在,但是狂按回车没反应…… 网上一查,按tab键,”确定“变红,再按回车,ok了 正是狂晕…… http://www.linuxidc.com/Linux/2010-06/26 ...
父页面的onload: $(function(){ var f = window.frames["formIframe"]; f.onload = function(){ var h=window.frames["formIframe"].document.body.scrollHeight; $('#formIframe').css('height',h+10); } }); 貌似有一定的概率绑定不上。
Global site tag (gtag.js) - Google Analytics