float 元素如果不指定宽度,在 ie6 下一般会有问题,如果出现此问题,可以尝试在 hack ie6,单独为 ie6 指定宽度。
------------来自团队的总结
float 元素如果不指定宽度,在 ie6 下一般会有问题,如果出现此问题,可以尝试在 hack ie6,单独为 ie6 指定宽度。
------------来自团队的总结
2010-5-7
- // 单例的命名
- // 理想中的最优解....
- var AJBridge = window.AJBridge || {};
前序
倒序的方式撰写思想。希望能成为一个好轮子,大家不用重复造的轮子。
在各浏览器下对于HTTP1.1标准的请求支持(同一个域名)的并行下载数为:
- ie6/7(2)
- Firefox3、IE8(6)
- Opera10/Chrome3/Safari4(4)。
--------------来自团队的总结

请阅读:http://webdirections.org/images/sowd10overview.pdf
热门关键字 :
Firefox 对已存在的事件监听程序(通过传统事件模式注册的)采取的是替换(replace)操作,而非Firefox浏览器采取的是重写(overwrites)操作。
----------来自团队的总结
element.onclick不管是在前还是在后,都会优于YAHOO.util.Event.on(element,'click',..)解析。
-------来自团队的总结
Mercurial 是一个轻量级的分布式版本控制系统,它以方便的控制、极强的扩展性赢得了众多开放源代码项目的青睐。本文从版本控制系统中的基本概念、操作和扩展性等方面,有侧重的介绍了 Mercurial。此外本文列出了几个其他常用的分布式版本控制系统,并和 Mercurial 作了简单的比较。通过阅读本文,读者可以了解基础的Mercurial操作,进而熟悉这个备受青睐的工具。
changeset: 207:58e4906e69e3 |
$ hg command [options]
|
$ hg help command
|
$ hg clone http://foo.com/hg/project1
|
destination directory: project1
requesting all changes
adding changesets
adding manifests
adding file changes
added 127 changesets with 448 changes to 143 files
139 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
$ hg init |
def main():
print "I'm in the a function."
print "Great joy of using Mercurial!" #新加的一行
if __name__ == "__main__":
sys.exit(main())
|
$ hg status M main.py |
diff -r a58db6f0e482 main.py
--- a/main.py Thu Nov 29 13:38:38 2007 +0800
+++ b/main.py Thu Nov 29 13:46:10 2007 +0800
@@ -1,5 +1,6 @@ def main():
def main():
print "I'm in the a function."
+ print "Great joy of using Mercurial!" #新加的一行
if __name__ == "__main__":
sys.exit(main())
|
$ hg commit |
HG: user: Guolian Yun <yunguol@cn.ibm.com> HG: changed main.py |
I’m using Mercurial! HG: user: Guolian Yun <yunguol@cn.ibm.com> HG: changed main.py |
$ hg status |
$ hg tip: changeset: 2:2874393e3d9c tag: tip user: Guolian Yun <yunguol@cn.ibm.com> date: Thu Nov 29 10:10:39 2007 +0800 summary: I'm using Mercurial! |
$ hg push project2 |
$ hg pull project3 |
$ hg pull -u |
file://local/filesystem/path http://[user@]host[:port]/[path] https://[user@]host[:port]/[path] ssh://[user@]host[:port]/[path] |
hg 后被调用时就像原生的命令一样。本文介绍两个常用的Mercurial扩展:Patchbomb和Mq。email命令。通过调用 hg email 命令,changeset 提交时的信息的第一行将作为邮件的主题,信件的正文包括完整的 changese t提交信息,以 patch 的形式发布出来的 changeset 完整补丁。如果一次发送的是多个changeset,那么Patchbomb会提示输入本次 changeset 集的总提示信息,这部分信息将作为第一封信,信件主题以[PATCH 0 of N]开头,changeset 则会以[PATCH i of N]将的主题开头发出,其中i是 changeset在本地 repository 当中的顺序。多changeset 系列邮件中,每封信会在邮件头中包含合适的回复信息,这样在邮件客户端可以清晰的显示出系列 changeset 之间的层次关系。.hgrc 当中设置,以下是一个完整的例子。
[extensions] hgext.patchbomb = [email] method = smtp # 还可以在这里指定/usr/sbin/sendmail from = Zhengang Li <lizg@cn.ibm.com> to = groupmail@foo.com [smtp] host = smtp.foo.com |
.hgrc 当中添加如下信息:
[extensions] hgext.mq= |
qinit, qnew, qrefresh, qdiff, qpop和qpush等。Qinit 用来初始化用来存放补丁队列的目录,qnew创建一个新的补丁changeset,qrefresh 将改动刷新到当前的补丁当中去,qdiff 将当前的补丁打印到屏幕,qpop 和 qpush 用来移动当前存放在队列顶部的补丁。完整的 q 系列命令可以从 hg help给出的列表中获得。.hg/patches下面,用户可以手动修改这些补丁当中的提交信息。Changeset 补丁的顺序存放在.hg/patches/series文件当中,同样的,用户可以修改这些补丁的顺序。