`
Odysseus_110
  • 浏览: 116841 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表

struts 命名 bug

今天在魏总的帮忙下找到一个struts 的bugstruts的 action里的 变量 不能用 大小写的class  Class  命名, 例如不能叫lessonclass  或者 lessonClass   public class ClassAction extends ActionSupport { private Lesson lesson;//这里不能用lessonclass 或者 lessonClass,反正就是在java里就别用class 这种关键词命名。 public String editClassType() { l ...

js notes

1 array and object definitionlet's introduce this bit of terminology: defining an array with [] is called array literal notation and defining an object using the curly braces {} is called object literal notation.2 <a href="#"><a> 的 # 都去掉,用js   $('a').css('cursor','pointer'); ...
<iframe width="300" id="iframetestid" frameborder="0" scrolling="no" src="test.php" onload="setTimeout(function(){reSetIframe('iframetestid');},200);" ></iframe>   function reSetIframe(iframeid){ var iframe = document. ...
1.   position:absolute   使用 position:absolute 的元素,如果它的父节点没有使用position:relative的话,它自己的绝对定位就是相对于整个文档的。 它的父节点使用position:relative 或者 position:fixed,那么他的绝对定位就是相对于它的父节点的。   2. 让所有字符大写: text-transform: uppercase;     3. 让字符有阴影效果: text-shadow: 2px 2px 0 #666;    4. 当一个父元素<div id="wrap ...
最近在做一个小应用时碰到一个需求是 鼠标可以拖动图片,然后在鼠标单击图片的时候可以放大图片。   这样就碰到一个问题,因为鼠标要实现拖放,鼠标首先是要单击图片然后才开始 拖放。所以拖放和放大功能就会重叠。   要解决这个问题,网上搜到一个解决方法是 设置一个全局变量。    因为拖放时 鼠标的 动作顺序是: a1 鼠标点击(mousedown), a2 鼠标移动(mousemove), a3 鼠标抬起(mouseup)       放大时 鼠标的 动作顺序是: b1 鼠标点击(mousedown),                                           ...
Well first of all, single quotes are much more efficient than double quotes, which is shown in the results from a simple test, which you can find here:http://phpbar.isgreat.org/viewtopic.php?f=2&t=56So, there obviously is a difference between them, but what is it?
今天测试给gmail发送邮件时候,开始总是被gmail列入到spam中, 后来找到他们的文档 http://support.google.com/mail/bin/answer.py?hl=en&answer=1366858 Phishing scams Some spammers send fraudulent messages that try to trick you into sharing personal information like passwords or credit card numbers. This practice is called phishing ...
iptv [/b] 市场概述 [/b] [/b] 据市场研究公司iSuppli 最新发表的研究报告称,2007 年,北美IPTV 用户达到了120 万,比2006 年增长了四倍。北美和南美的全部IPTV 用户在2007 年年底达到了180 万,增长率为257% 。     这篇报告称 ...
用jQuery Impromptu调试个模态窗口调到最后ie6居然不能用,真是好看不中用,还是山寨好:       <!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>网页 ...
  <html:text styleId="sysconfig_form_exgrate" property="exchangeRate" size="6" maxlength="6"/>       styleId 最后就是id 在js中document.getElementById();的参数。
var testvar = 'window属性'; var o3 = { testvar:'3', testvar2:'3**', fun:function(){ alert('o3: '+this.testvar);//'obj3' var inner = function(){ alert('o3-inner: '+this.testvar);//'window属性' alert('o3-inner: '+this.testvar2);//undefined(未定义) }; ...
  If you attempt to read the value of an undeclared variable, JavaScript will generate an error. If you assign a value to a variable that you have not declared with var , JavaScript will implicitly declare that variable for you. Note, however, that implicitly declared variables are always c ...
  Comparison Operators The most commonly used types of relational operators are the comparison operators, which are used to determine the relative order of two values. The comparison operators are: Less than (< ) The < operator evaluates to t ...

php读取文件

    博客分类:
  • PHP
1。php存文件的时候$testfilename2居然是非要单引号才行,要不然用双引号会报错,以后用变量的时候应该多用单引号     $testfilename2='D:\ProgramFiles2\AppServ\www\catch28\admin\testmethod6.html';//文件名,可以为.php或者.txt等文本文件 file_put_contents($testfilename,'<!--resultpage-->'); 2。mysql_free_result() 在update的操作的时候不需要调用: mysq ...
http://bugzilla.globus.org/globus/show_bug.cgi?id=4929   solaris 和 HPUX 上的== 号不好使   solaris and HPUX:   if [ "$findstr" = "31" -a "$PLATFORM" = "OS/390" ];then   其它linux: if [ "$findstr" == "31" -a "$PLATFORM" == "OS/390 ...
Global site tag (gtag.js) - Google Analytics