ITeye博客

2010 年文章归档

共 103 篇文章

关于unicode与utf-8

http://ninghonghe2005.blog.163.com/blog/static/129527832009089611573/

2010-12-23 18:35 · 编码 · Blog

关于FIREFOX火狐浏览器中focus()设置焦点的问题

在IE浏览器中,document.getElementById('id').focus();可以设置某标签得到焦点;但是在火狐中却不行。 原因很简单: 因为在火狐中设置标签焦点的顺序是先失去焦点才能得到焦点,也就是说先document.getElementById('id').blur();之后再document.getElementById('id').focus();这样ID为id的标签就可以得到焦点啦。

2010-11-18 15:49 · js · 浏览器 · Firefox · IE

js onblur和onclick同时触发的问题

Java代码 当clcik这个image的时候,func1和func2同时触发。 问:如何才能避免clcik这个image的时候,func1和func2同时触发; 问题补充: 这里,我补充一下问题的背景: 这不是什么现实项目中的问题,只是我平时无聊之余,用我贫乏之极的js写得一个稍微能简化一点重复工作的一个tool(我很无耻的称之为url productivity tool)。所以,并没有什么复杂的逻辑与设计。唯一的要求,就是自己怎么方便怎么来。 func2和func3执行的是完全一样的操作。这样的话,我可以单用鼠标完成操作,也可以单用左手(输入完成以后,小拇指扫一下tab键就可以了)。 /…

2010-11-18 15:48 · js · 工作 · 活动

Lesson 20 Pioneer pilots 飞行员的先驱

【New words and expressions】 生词和短语 ◆pioneer n. 先驱 ◆lord n. 对(英国)贵族的尊称;勋爵 ◆Calais n. 加来(法国港市) ◆overland adj. 陆上的 ★pioneer n. 先驱 young pioneer 同义词 advocate 倡导者 pioneer adult education ★lord n. 对(英国)贵族的尊称;勋爵 lordless 无郡主的 lordship lordly 昂迈的 duke 公爵 marquis 侯爵 earl 伯爵 viscount 子爵 baron 男爵 ★Calais n. 加来…

2010-11-10 15:45 · NC3 · UP

Lesson 19 A very dear cat 一只贵重的宝贝猫

【New words and expressions】 生词和短语 ◆dear adj. 亲爱的,珍贵的;昂贵的 ◆kidnapper n. 绑架者,拐骗者 ◆considerable adj. 相当大的 ◆wealthy adj. 富的,有钱的 ◆orderly adj. 有规律的 ◆disappearance n. 失踪 ◆anonymous adj. 匿名的 ◆ransom n. 赎金 ◆cardboard n. 硬纸板 ◆withdraw (withdrew, withdrawn ) v. (从银行)取钱 ◆punctually adv. 准时地 ◆astound v. 使吃惊 ★d…

2010-11-10 15:45 · NC3 · Go · 生活

Lesson 18 Electric currents in modern art 现代艺术中的电流

【New words and expressions】 生词和短语 ◆current n. 电流 ◆sculpture n. 雕塑 ◆mistaken adj. 错误的 ◆gallery n. 美术馆 ◆exhibit n. 展品,陈列品 ◆oddly adv. 古怪的 ◆attach v. 连,系 ◆sphere n. 球体 ◆magnetize v. 使磁化 ◆repel v. 排斥 ◆flicker v. 闪烁 ◆emit v.放射 ◆flash v. 闪光 ◆prehistoric adj. 史前的,老掉牙的 ◆electronic adj. 电子的 ◆peculiar adj. 奇…

2010-11-10 15:44 · NC3 · Go · Flash · UP · 活动 · IDEA

Lesson 17 The longest suspension bridge in the world

【New words and expressions】 生词和短语 ◆suspension n. 悬,吊 ◆agreeable adj. 宜人的 ◆situation n. 地点,地方 ◆locate v. 位于 ◆immortal adj. 永生的,流芳百世的 ◆Brooklyn n. 布鲁克林(纽约一区名) ◆Staten n. 斯塔顿(岛) ◆span n. 跨度 ◆cable n 缆索 ◆concrete n. 混泥土 ◆suspend v. 悬挂 ◆length n. 根,段 ◆estimate v. 估计 ◆immensity n. 巨大 ◆capacity n. 承受量 ◆el…

2010-11-10 15:44 · NC3 · Go · UP

Lesson 16 Mary had a little lamb 玛丽有一头小羔羊

【New words and expressions】 生词和短语 ◆prize adj. 珍贵的,宝贵的 ◆tie v. 拴,系 ◆theft n. 偷盗案 ◆accuse v. 指控 ◆deny v. 否认 ◆ashamed adj. 感到羞耻,惭愧 ◆apologize v. 道歉 ◆dye v. 染 ★prize adj. 珍贵的,宝贵的 可以表示“珍贵的,宝贵的”的词包括:prize,valuable,precious, cherishable,dear E.g.: Mary has got a prize lamb. The cat is prize to the old lad…

2010-11-10 15:43 · NC3 · Windows

Lesson 15 Fifty pence worth of trouble 五十便士的麻烦

【New words and expressions】 生词和短语 ◆appreciate v. 欣赏,感激 ◆pocket money 零用钱 ◆rattle v. 格格作响 ◆thrifty adj. 节俭的 ◆nephew n. 侄子,外甥 ◆bounce v. 弹起,跳起 ◆pavement n. 人行道 ◆stick ( stuck, stuck ) v. 卡住,夹住,不能再动 ◆brigade n. 旅, (消防)队 ◆grease n. 润滑油 ◆appreciate v. 欣赏,感激 Eg.: The poem is too difficult for me to appre…

2010-11-10 15:42 · NC3 · Spring · Go · UP · SOAP · IDEA

Lesson 14 A noble gangster 贵族歹徒

【New words and expressions】 生词和短语 ◆gangster n. 歹徒,强盗 ◆Chicago n. 芝加哥 (美国城市) ◆protection n. 保护 ◆promptly adv. 准时地 ◆destroy v. 毁掉;消灭 ◆remarkable adj. 不寻常的 ◆band n. 帮,团伙 ◆Florence n. 佛罗伦萨(意大利城市) ◆city-state n. (古代)城邦 ◆hire v. 租出,雇给 ◆prince n. 君主,诸侯 ◆Florentine n. 佛罗伦萨人 ◆funeral n. 葬礼 ◆dedicate v. 奉献,题…

2010-11-10 15:41 · NC3 · Go · UP

Lesson 13 ‘It’s only me’ “是我,别害怕”

【New words and expressions】 生词和短语 ◆costume n. 化装服 ◆consist v. 由...组成 ◆sheet n. 被单 ◆effective adj. 有明显效果的,有作用的 ◆comfortable adj. 舒适的 ◆streroom n. 储藏室 ◆electricity n. 电 ◆metre n. 电表 ◆pace n.一步 ◆flee v. 逃走 ◆slam v. 砰地关上 ◆costume n. 化装服 costume ball 化妆舞会 costume party fancy (dress ) party suit 西服,西装 dr…

2010-11-10 15:40 · NC3 · UP · Office

Lesson 12 Life on a desert island 荒岛生活

【New words and expressions】 生词和短语 ◆ desert island 荒岛 ◆ unrealistic adj. 不真实的 ◆ Paradise n. 天堂,乐土 ◆ wretched adj. 可怜的,艰苦的 ◆ Starve v. 挨饿 ◆ element n. 成分 ◆ opportunity n. 机会 ◆ coral n. 珊瑚 ◆ Virgin Islands 维尔京群岛 ◆ Miami n. 迈阿密 (美国最南的城市) ◆ dinghy n. 救生筏,小船 ◆ Caribbean n. 加勒比海 ◆ spear gun 捕鱼枪 ◆ lobster …

2010-11-10 15:39 · NC3 · Go · 生活 · SUN

Lesson 11 Not guilty 无罪

【New words and expressions】 生词和短语 ◆guilty adj. 犯罪的,违法的 ◆tolerant adj. 宽容的 ◆declare v. 申报 ◆hardened adj. 有经验的 ◆professional adj. 职业的,专业的 ◆smuggler n. 走丝者 ◆officious adj. 爱管闲事的 ◆confidently adj. 自信地 ◆dreadful adj. 可怕的,一团糟的 ◆pounce v. 猛抓, 扑住 ◆perfume n. 香水 ◆sarcastically adv. 讽刺地 ◆exempt adj. 被免除的 ◆du…

2010-11-10 15:39 · NC3 · UP · Office

Lesson 10 The loss of the Titanic “泰坦尼克“号的沉没

【New words and expressions】 生词和短语 ◆Southampton n. 南安普敦(英国港市) ◆colossal adj. 庞大的 ◆watertight adj. 不漏水的 ◆compartment n. (轮船的)密封舱 ◆flood v. 充满水 ◆float v. 漂浮, 飘浮 ◆tragic adj. 悲惨的 ◆liner n. 班船 ◆voyage n. 航行 ◆iceberg n. 冰山 ◆lookout n. 瞭望员 ◆collision n. 碰撞 ◆narrowly adv. 刚刚,勉强地 ◆miss v. 避开 ◆slight adj. 轻微…

2010-11-10 15:37 · NC3 · Mobile · Go · UP · IDEA

Lesson 9 Flying cats 飞猫

【New words and expressions】 生词和短语 ◆fascinate v. 迷住,吸引住 ◆affectionate adj. 充满情深的,柔情的 ◆mysterious adj. 神秘的,难以理解的 ◆submissive adj. 服从的,顺从的 ◆feline adj. 猫的 ◆independence n. 独立,独立性 ◆high-rise adj. 高层的 ◆windowsill n.窗槛 ◆paratrooper n. 伞兵 ◆squirrel n. 松鼠 ◆air-resistance n. 空气阻力 ◆impact n. 冲击力 ★fascinate v…

2010-11-10 15:36 · NC3 · C · 医疗 · C++ · C# · AIR

Lesson 8 A famous monastery 著名的修道院

【New words and expressions】 生词和短语 ◆monastery n. 寺院,修道院 ◆St. Bernard 圣伯纳德 ◆pass n. 关隘 ◆watchdog n. 看门狗 ◆rashly adj. 莽撞地,冒失地 ◆enclosure n. 围场,圈地 ◆monk n. 和尚,僧侣 ◆privacy n. 清静,隐居 ◆skier n. 滑雪者 ◆Easter n. 复活节 ★monastery n. 寺院,修道院 abbot:修道院院长 convent nun:修女 abbess:女修道院院长 ★St. Bernard 圣伯纳德 ★pass n. 关隘 ★w…

2010-11-10 15:35 · NC3 · C · C++ · C# · 旅游 · 生活

Lesson 7 Mutilated ladies 残钞鉴别组

【New words and expressions】 生词和短语 ◆mutilate v. 使残缺不全 ◆chew v. 咀嚼 ◆fiancé n.未婚夫 ◆microwave n. 微波,微波炉 ◆oven n. 炉灶 ◆safekeeping n. 妥善保管 ◆Newcastle n. 纽卡斯尔(英国港市) ◆identify v. 鉴别,识别 ◆spokeswoman n. 女发言人 ★mutilate v. 使残缺不全 vt. 经常用于被动语态 1,毁伤,残害。 He was mutilated in the accdient, and now has only one leg. …

2010-11-10 15:34 · NC3 · C · C++ · Go · C# · UP

Lesson 6 Smash-and grab 砸橱窗强截(分享与复习)

New words and expressions】 生词和短语 ◆smash-and-grab n. 砸橱窗强截 ◆arcade n. 有拱廊的街道(两旁常设商店) ◆Piccadilly n. 皮卡迪利大街 ◆jewellery n. 珠宝(总称) ◆necklace n. 项链 ◆ring n. 戒指 ◆background n. 背景 ◆velet n. 天鹅绒,丝绒 ◆headlight n. (汽车等)前灯 ◆blare v. 发嘟嘟声,吼叫 ◆staff n. 全体工作人员 ◆raid n. 偷袭 ◆scramble v. 爬行 ◆fantastic adj. 非常大的 ◆as…

2010-11-10 15:33 · NC3 · C · C++ · Windows · C# · UP

Java编码浅析(注意区分三个概念)

Java与Unicode: Java的class文件采用utf8的编码方式,JVM运行时采用utf16。 Java的字符串是unicode编码的。 总之,Java采用了unicode字符集,使之易于国际化。 Java支持哪些字符集: 即Java能识别哪些字符集并对它进行正确地处理? 查看Charset 类,最新的JDK支持160种字符集。可以通过static方法availableCharsets拿到所有Java支持的字符集。 Java代码 1. assertEquals(160, Charset.availableCharsets().size()); 2. 3. Set charsetNa…

2010-11-09 18:38 · java基础 · Java · JVM · IDE · JDK · 虚拟机

旅游1111111111111111

我去过塞班、普吉和巴厘岛。推荐普吉的racha岛,符合你全部条件 塞班的海水颜色很美,是非常美的深蓝色,潜水看珊瑚什么不错,人少安静。但是沙滩相对还是比较粗,而且住宿都是大型酒店,没有马尔代夫一岛一酒店的感觉 巴厘岛比较热闹的西南部海滩一般都是玩冲浪的,海水颜色一般,要浮潜和晒太阳要去北部或东部,路途遥远有点折腾,而且北部的沙滩是深色的,和一般人想象的白沙差距很大,其实我认为巴厘岛最美的是中部山区,享受山谷里的私密别墅和艺术氛围,游泳浮潜什么的不是巴厘岛的长项 普吉的racha岛,翻译成皇帝岛,拉查岛什么的,今年春节刚去,透明的海水、面粉一样的白沙滩、浮潜看到多得不可思议的鱼,甚至不用开船出…

2010-11-03 15:02 · Go · 活动 · AIR · 旅游 · 交通