2010.8.27 12:21
1.select getdate();
返回当前日期和时间;可以设置得到各种时间格式.
实例:
select getdate()
&nbs...
[More]
2010.7.16 17:49
流行的JavaScript库,如jQuery, MooTools, Prototype, Dojo和YUI等,完成起常见的JavaScript任务来得心应手。这些JS库为客户端动作(events)、动画特效(effects),和AJAX应用等提供很多现成的函数。而且如果这些库中的某一个无法直接达到你要的效果,还可能会有相关插件满足你的要求。
JavaScript库的灵活性给我们的工作提供方便,但有利也有弊——比如说JavaScript文件过大的问题。尽管放弃这些著名的JavaScript库能显示你的聪明才智,但你可能还是会愿意采用一些体积小巧、专注于特定任务的Java...
[More]
2010.7.9 18:25
在C#程序中,没有全局变量的概念,这意味着所有的成员变量只有该类的实 例才能操作这些数据,这起到了“信息隐藏”的作用。但有些时候,这样做却不是个明智的选择。
假设我们要定义一个图书类,要求该类能保存图书的数量,即每增加一本图书(定义一个实例), 图书的数量应该加1。如果没有静态变量,我们需要将图书的数量保存在每本图书(实例)里,然而,这样的变量要在不同图书(实例)里重复存储,图书(实例) 数量少的话,我们还能接受,如果图书(实例)数量较多的话,比如成千上万,我们无法想象这要造成多少资源(如内存、磁盘空间)的浪费,更让人无法忍受的 是:因为图书(实例)的数量要保存在每本...
[More]
2010.7.9 11:12
Question
How do i concat two dictionaries aka the following sample:
Dictionary<int, string> a;
Dictionary<int, string> b;
b.Add(a);
Answer
foreach (KeyValuePair<int,string> pair in b)
{
a.Add(pair.Key, pair.Value);
}
Or if you're using .NET 3.5 you cou...
[More]
2010.7.6 18:46
作为一个 Web 开发人员,你几乎没有理由不喜欢Firefox,因为在Firefox下 有很多专门针对开发的扩展插件,非常好用,这里就介绍 一些常用的针对网站开发的FireFox扩展,供Web开发人员参考。
1、Firebug
用于调试JavaScript,修改界面HTML和CSS,一些常用的网络分析扩展也是基于Firebug的,非常好用。
2、YSlow
YSlow是 Yahoo开发的,基于Firebug的用于分析网页性能的工具,可以提供如何提高网站性能的一套规则,用于优化网页的速度和建立高性能的网页。
3、Page Speed
Page Sp...
[More]
2010.6.23 15:48
在ibatis中使用安全的拼接语句,动态查询
ibatis 比JDBC的优势之一,安全高效
说明文字在注释中
<select id="selectAllProducts" parameterClass="Product" resultMap="ProductResult">
select id,note from Product
&nb...
[More]
2010.5.31 00:57
微距...花flower
好多鱼.........fish
波光粼粼
我是一棵无人知道的小草
2010.5.27 23:39
Watch the story and answer the question
What is Rober's job?
ROBERT: I am a new student.
My name's Robert.
SOPHIE: Nice to meet you.
My name's Sophie.
ROBERT: Are you French?
SOPHIE: Yes, I a...
[More]
2010.5.27 00:19
Watch the story and answer the question
Is Chang-woo Chinese?
MR.BLAKE:Good morning./good afternoon/good evening/good night
STUDENT:Good moring,Mr.Blake.
MR.Blake:This is Miss Sophie Dupont.
Sophie is a n...
[More]
2010.5.23 23:09
Watch the story and answer the question
Does the man get his umbrella back?
My coat and my umbrella please.
Here is my ticket.
Thank you sir.
Number five.(语序)
Here's your umbrella and your coat.
This is not my umbrella.
this your umbrella?
No,It isn't.
Is this It?
Y...
[More]
2010.5.23 22:33
Watch the story and answer the question
Whose handbag is it?
Excuse me!
yes?
Is this your handbag?
pardon?
Is this your handbag?
Yes,It is
Thank you ,It is
key words and expressions
excuse me 劳驾,请问,对不起
pardon n. 原谅,请再说一遍(I beg your pardon?)
handbag n. (女用)手提包 [han(d)bag两个爆破音,前一个失去...
[More]
2010.5.19 17:15
document没有这个方法,
但是我们可以自己写
function getElementsByClassName(className, parentElement){
var elems = ($(parentElement)||document.body).getElementsByTagName("*");
var result=[];
for (i=0; j=elems[i]; i++){
if ((" "+j.className+" ").indexOf(&qu...
[More]
2010.5.17 00:00
Last week I went to the threatre. I had a very good seat. The paly was very interesting. I did not enjoy it. A young man and a young woman were sitting behind me . They were talking loudly.
I got very angry. I could not hear the actors. I turned round. I looked at the man and the woman angril...
[More]