自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(44)
  • 资源 (5)
  • 问答 (4)
  • 收藏
  • 关注

原创 HTML5 Startup Packs

同时欢迎到我的BLOG讨论 : http://pagetalks.com/   当我们还在考虑JS或CSS框架的时候,有一群人已经在考虑整个站点的前端框架了。在这个层次,具体使用什么JS库已经不重要了,而是整个站点的结构,对客户端的兼容能力,以及测试等环节的把我。   在这里我介绍三个比较优秀的HTML Start-up Packs。   <h3><a href...

2010-10-15 11:11:12 210 1

WebApp在移动端的涅盘- 另类的移动端应用程序开发

同时欢迎到我的BLOG讨论 : http://pagetalks.com/ 江湖有江湖的规矩,大家都知道iPhone上的Cocoa Touch框架和Xcode是开发Apple移动产品的王道。Android SDK和Eclipse是开发Android App的王道⋯⋯你可以找到所有主流平台的开发框架和相关IDE。 你说这做移动端应用的人容易么?虽说Blackberry和Android都是基于...

2010-09-27 22:35:43 223

[更新20100922]jQuery Location Select 插件- 地址联动、地理检测

  最新版本的LocationSelect已经将其与jQuery分离,但做了一个jQuery的适配器,可以和jQuery一起使用。而且现在可以支持任意级别联动⋯⋯ 介绍 用户的地址选择往往是网络应用中不可缺少的一部分,可是遇到了以下问题: 地址数据难以收集 用户选择烦琐,需要手动查找冗长的下拉菜单 难以维护地理数据以及重用组件 LocationSelect插件具有以下特点,有效的...

2010-03-22 14:28:24 334

原创 jquery 1.4 发布了……

jquery的新版本发布了,这是一个重要的更新。出来了很多新函数和特性~哈哈~ http://net.tutsplus.com/tutorials/javascript-ajax/jquery-1-4-released-the-15-new-features-you-must-know/...

2010-02-06 20:03:29 199

原创 ScriptDoc的Notation规则

这个还是蛮重要的,以前就一直很羡慕Java有一套标准来着: 转自:https://aptanastudio.tenderapp.com/faqs/using-code-assist/scriptdoc-tag-quick [quote]This page provides an at-a-glance reference for the tags for the Aptana Script...

2010-01-23 19:37:12 190

原创 关于google.setOnLoadCallback()的一点研究

google.setOnLoadCallback()是google ajax api的重要方法。 在最近一个项目里,用了google的ajax api。问题是,这个方法到底在什么时候才会调用? 在google的文档里面:http://code.google.com/intl/zh-CN/apis/ajax/documentation/ [quote]当载入文档时,google.s...

2010-01-12 10:01:59 337

原创 ECMA 推出 JavaScript 5

转发自http://www.comsharp.com/GetKnowledge/zh-CN/It_News_K875.aspx   ECMA 本周推出了 JavaScript 5(PDF ),除了增强基础函数库之外,还引入了严格运行时模式(Strict Runtime Modes)以避免代码中的常见错误。ECMA ECMAScript 4 的努力曾以失败告终,ECMA 甚至没有发布 E...

2009-12-28 21:17:49 172

原创 网上的几个applescript例子

清空idle进程 [code="java"]property ticsSinceActive : 0 property idleTime : 60 -- time to idle, in seconds property timeLimit : 10 -- memory range, in minutes property cpuUsage : {} on idle set ma...

2009-12-18 10:47:32 419

原创 Javascript 事件编程 (二)

Event Handlers and the this Keyword 事件处理程序和this关键字 [quote]When your event handler is invoked, it is invoked as a method of the element on which the event occurred, so the this keyword refers to th...

2009-09-18 21:28:42 153

原创 xcode初探

XCode是APPLE提供的免费IDE,所有语言通吃:JAVA、C++、C、Object C++等等。 这个工具的初衷是为了提供一个再MAC下可用的强大开发工具。 这个工具可以很方便的位MAC开发各种各样的系统插件、浏览器插件等等 用它进行Cocoa开发才是最强大的选择。这个工具也是开发iphone应用的首选…… 如果你要用它进行开发C、Java也是没有问题的。 本人主要用它做C...

2009-09-14 09:40:31 159

原创 Javascript 事件编程 (一)

Events and Event Handling 事件和事件处理 [quote]The original event model: all js-enabled browsers The standard event model: all modern explorer except IE The Internet Explorer event model: IE In the...

2009-09-04 15:27:08 188

原创 Javascript CSS编程 (一)元素定位、透明、内联样式

Querying Element Position and Size 查询元素坐标和大小 [quote]the offsetLeft and offsetTop properties of an element return the X and Y coordinates of the element. the offsetWidth and offsetHeight propert...

2009-09-03 14:29:16 200

原创 Javascript CSS编程 (二)Computed Styles、Class修改、操作样式表

Scripting Computed Styles 计算样式 [quote]the rules of all stylesheets are tested to see which apply to the element, and the styles of those applicable rules are combined with any inline styles for th...

2009-09-03 13:15:02 414

原创 Javascript DHTML动画

JS实现的动画效果多半是用timmer实现的某个属性不断改变的过程。以下这个写好的函数是十分强大的~摘自JSDG 5th ed。附上我的注释: [code="js"]/** * AnimateCSS.js: * This file defines a function named animateCSS(), which serves as a framework * for cr...

2009-09-03 13:00:07 190

原创 Javascript IE4 DOM

很多IE独有的DOM特性是沿袭自IE4的,所以有必要看看IE4 DOM的特性,与W3C的DOM模型有所区别。 [quote]IE 4 does not support childNodes[], but it provides a similar children[] array on its Document and HTMLElement objects. IE 4 does no...

2009-09-02 17:14:51 224

原创 Javascript 操控选择文本

Querying Selected Text 查询选择的文本 [quote]This is an area where little standardization exists, but it is possible to query the selected text in all modern browsers.[/quote] 在这个方面,没有什么标准存在;但还是有可能读取用...

2009-09-02 17:02:39 233

原创 Javascript 寻找文档元素

Finding Elements in a Document 在文档中查找元素 [quote]The document.documentElement property refers to the tag that serves as the root element of the document. the document.body property refers to th...

2009-09-02 16:51:13 546

原创 Javascript Document编程

Scripting Documents Document编程 [quote]document.write() inserts text into an HTML document at the location of the tag that contains the invocation of the method. [/quote] write()方法在代码所在处插入文档内...

2009-09-02 11:30:54 338

原创 Javascript 窗口的几何关系和相关方法、属性

Window Geometry 窗口几何关系 [quote]Screen coordinates describe the position of a browser window on the desktop; they are measured relative to the upper-left corner of the desktop. [/quote] Screen坐标系...

2009-09-02 10:47:06 169

原创 JavaScript window下面的常用函数、属性

我们常用的一些函数都是全局对象window下面的。这里将其梳理一下: Timers 计时器 [quote]global functions setTimeout( ), clearTimeout( ), setInterval( ), and clearInterval( ). [/quote] [quote]Although the preferred way to invo...

2009-09-02 10:30:44 247

原创 JavaScript 在浏览器中的相关概念:执行环境、引入脚本、安全策略等

The Window as Global Execution Context 窗口作为全局执行环境 [quote]document property for the Document object two self-referential properties, window and self a location property that refers to the Locat...

2009-09-02 09:32:45 175

原创 MySQL数据库备份和还原的常用命令

原文: http://www.21andy.com/blog/20071102/655.html 备份MySQL数据库的命令 mysqldump -hhostname -uusername -ppassword databasename > backupfile.sql 备份MySQL数据库为带删除表的格式 备份MySQL数据库为带删除表的格式,能够让该备份覆盖已有数据库而不需要手...

2009-08-11 08:15:28 99

原创 MySQL的备份与恢复

原文地址:http://imysql.cn/mysql_backup_and_recover 目前 MySQL 支持的免费备份工具有:mysqldump、mysqlhotcopy,还可以用 SQL 语法进行备份:BACKUP TABLE 或者 SELECT INTO OUTFILE,又或者备份二进制日志(binlog),还可以是直接拷贝数据文件和相关的配置文件。MyISAM 表是保存成文件的...

2009-08-11 08:07:09 135

原创 JSDoc 规范

命 令 名 描  述 @param @argument 指定参数名和说明来描述一个函数参数 @returns 描述函数的返回值 @author 指示代码的作者 @deprecated 指示一个函数已经废弃,而且在将来的代码版本中将彻底删除。要避免使用这段代码 @see 创建一个HTML链接,指向指定类的描述 @version 指定发布版...

2009-08-09 21:11:59 235

原创 CSS 单行益处截字

文字益处,浏览者习惯看到“...”来提示他们这行字还有其他部分,但是由于空间不够,网页帮你隐藏起来了。 这种效果除了在服务器端预处理,还可以用JS来折腾。其实CSS也可以实现,只是浏览器兼容性问题又让你不得好死…… 在这里发现一个思路很好的解决方法 http://www.cnblogs.com/hlz789456123/archive/2009/02/18/1392972.html ...

2009-07-30 10:50:18 289

原创 SVN脱机后项目文件夹的清理

.svn文件夹清理起来很麻烦的~ 好在找到了一个注册表工具: [code="java"] Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Delete SVN Folders" [HKEY_LO...

2009-07-30 08:05:07 158

原创 JavaScript Namespace模拟

做JavaScript的大型项目比较痛苦,它没有namespace的概念,所有顶级变量都在global对象里面混杂起来。特别是现在比较流行模块式开发,问题就越来越糟糕了,做出来的东西可能会把别人现有工程给搞残废……哈哈 看看老外是怎么解决这个问题的…… [quote]If you want to write a module of JavaScript code that can be...

2009-07-15 18:53:51 196

原创 JavaScript Class模拟深入 - Duck Typing 和 Class相关的工具类

Duck Typing [quote]If it implements all the methods defined by a class, it is an instance of that class. Duck typing is particularly useful in conjunction with classes that "borrow" methods from o...

2009-07-15 17:16:34 245

原创 JavaScript 判定对象类型

判定JS的对象类型基本是MISSION Impossible。 JS的对象可能是JS核心对象、可能是自定义类、可能是空等等,但是其弱类型机制又无法有什么很准确的方法来判定这个对象到底是什么,特别是当这个东西是有继承的…… [quote]typeof is useful primarily for distinguishing primitive types from objects. Th...

2009-07-15 16:53:07 164

原创 JavaScript Class模拟深入 - 继承、子类

Superclasses and Subclasses 之前的一篇文章讲解的类都是直接继承自Object的,这里会介绍如何在JS中实现继承自任意“类” [quote]Java, C++, and other class-based object-oriented languages have an explicit concept of the class hierarchy. ...

2009-07-15 16:27:42 199

原创 javascript this 关键字小提示

来自:http://www.macji.com/2009/01/18/javascript-this-keyword-tips/ this指向当前作用域的对象,如果找不到,往上一层找,直到window。 this 关键字很好用,很灵活,正因为很灵活,所以一不小心你就会掉进陷阱,所以你要注意以下几点: 1. 元素对象的this,始终指向该元素,如事件绑定。 2. 全局...

2009-07-14 22:01:05 130

原创 JavaScript Class模拟基础

Simulating Classes in JavaScript 目前,用js来模拟class是一件非常麻烦的事情,多少有点不优雅。 但是未来的JS肯定会支持class,那么这个语言就是基于class和Prototype的混合继承?到时候会不会越来越混乱呢?笑…… Instance Properties 实例属性 [quote]By default, any object p...

2009-07-14 16:39:48 160

原创 JavaScript Prototype基础

The prototype Property [quote]prototype property that refers to a predefined prototype object[/quote] Prototype属性是指一个早已确定的原型对象 Classes, Constructors, and Prototypes [quote]JavaScript does not ...

2009-07-14 15:56:56 175

原创 JavaScript 函数Function 基础

函数是JS的引用数据类型 匿名函数 [code="js"]function() { //Code here }[/code] 给一个函数名 [code="js"]function foo() { //code here }[/code] 或者 [code="js"]var foo = function() { //Code here }[/cod...

2009-07-14 14:47:14 129

原创 JavaScript 对象Object和数组Array

Object、Array是JS的引用型基本属性 枚举Object中的属性: [code="js"]function DisplayPropertyNames(obj) { var names = ""; for(var name in obj) names += name + "\n"; alert(names); }[/code] 检查对象中是否有某...

2009-07-13 21:35:37 181

原创 Javascript 创建文档元素

以下代码来自 https://developer.mozilla.org/cn/%E4%BD%BF%E7%94%A8Javascript%E5%92%8CDOM_Interfaces%E6%9D%A5%E5%A4%84%E7%90%86HTML#page-tags [code="js"]var mybody=document.getElementsByTagName("body").item...

2009-07-13 20:51:05 294

原创 IE Conditional Tag

Operator syntax Description ! The "not" operator. lt The "less than" operator. lte The "less than or equal to" operator. gt The "greater than" operator. gte The "greater than or ...

2009-07-11 20:49:49 142

原创 Javascript 变量相关基础

来自JSDG: [quote]The types can be divided into two groups: primitive types and reference types. Numbers, boolean values, and the null and undefined types are primitive. Objects, arrays, and fu...

2009-07-06 15:31:06 133

原创 Flash顶层遮盖问题的解决

默认模式下,flash内容总会在网页的最上层,这样的话像lightbox之类的东西就会很糟糕。Adobe官方的解决方案:http://kb2.adobe.com/cps/155/tn_15523.html [quote] Use the WMODE parameter to allow layering of Flash content with DHTML layers. The WMO...

2009-07-06 09:52:13 166

原创 CSS Crib Sheet

来自http://mezzoblue.com/css/cribsheet/,一些CSS的开发技巧、规则 When in doubt, validate. When debugging, you may save yourself a lot of headache by simply validating your code first. Improperly-formed XHT...

2009-07-04 17:57:29 163

数据结构 复习资料(综合严蔚敏的C语言数据结构和其它教材)

自己总结的数据结构的基础复习资料,配套严蔚敏的数据结构,其实也参考了很多其它书籍 这个内容难度适中……应付考试绝对够

2009-12-16

操作系统 复习笔记(庞丽萍 第四版)

操作系统第四版的复习笔记…… 这本书很经典,不过我们为啥要学这门课啊……汗 我已经加密过了,不能复制的,可以打印。为了防止某些同学去做小抄哈~

2009-12-23

计算机网络复习资料、提纲(谢希仁 第5版)

优快云上也有其他的,肯定没这个详细。我当初就为了下优快云上的,结果没积分,就自己整理了一份。 包括第一至第六章、第八章。网络安全和其他新兴技术不包括在经典的网络试题中,所以就没写进去。 PS 这是对应谢希仁的第五版教材!

2009-12-04

计算机系统结构 复习笔记(张晨羲版)

计算机系统结构的复习笔记……我这学期做了好多笔记啊~ 张晨羲版的,高教出版社 包含计算机系统结构的基本概念、指令集结构、流水线、存储层次

2009-12-16

jQuery Color chart

一个很方便的jquery 1.2的图表,涵盖了jquery的几大组件的主要函数。偶尔忘了直接打开看看~

2009-12-03

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除