Robin的技术网摘
robinqu · 共 44 篇文章
HTML5 Startup Packs
同时欢迎到我的BLOG讨论 : http://pagetalks.com/ 当我们还在考虑JS或CSS框架的时候,有一群人已经在考虑整个站点的前端框架了。在这个层次,具体使用什么JS库已经不重要了,而是整个站点的结构,对客户端的兼容能力,以及测试等环节的把我。 在这里我介绍三个比较优秀的HTML Start-up Packs。 <h3><a href="http://html5boilerplate.com/" title="link to HTML5 BOILERPLATE">HTML5 BOILERPLATE</a></h3> 非常帅的一个站点前端骨架。不仅包括apache、nginx的…
2010-10-15 11:11 · xhtml · 评论(0)
WebApp在移动端的涅盘- 另类的移动端应用程序开发
同时欢迎到我的BLOG讨论 : http://pagetalks.com/ 江湖有江湖的规矩,大家都知道iPhone上的Cocoa Touch框架和Xcode是开发Apple移动产品的王道。Android SDK和Eclipse是开发Android App的王道⋯⋯你可以找到所有主流平台的开发框架和相关IDE。 你说这做移动端应用的人容易么?虽说Blackberry和Android都是基于Java、有效部分人之前也做过Objective-C,但是想到一个大众产品需要提供每个平台的无差别体验时,你做的可能不是一个项目,而是N个项目。哪天国内某个厂商做了自己的操作系统和SDK,你也得啥啥的多做一…
2010-09-27 22:35 · javascript · 评论(0)
[更新20100922]jQuery Location Select 插件- 地址联动、地理检测
最新版本的LocationSelect已经将其与jQuery分离,但做了一个jQuery的适配器,可以和jQuery一起使用。而且现在可以支持任意级别联动⋯⋯ 介绍 用户的地址选择往往是网络应用中不可缺少的一部分,可是遇到了以下问题: 地址数据难以收集 用户选择烦琐,需要手动查找冗长的下拉菜单 难以维护地理数据以及重用组件 LocationSelect插件具有以下特点,有效的解决了以上三个问题: 基于广泛使用的jQuery插件库,轻易实现组件重用。你也可以选择使用不使用任何脚本库的版本。 地理数据整理来自国家公布数据 自动判断用户地理位置并进行最大努力的自动选择 独立的json数据源,可以方…
2010-03-22 14:28 · jquery · 评论(14)
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 · jquery · 评论(0)
ScriptDoc的Notation规则
这个还是蛮重要的,以前就一直很羡慕Java有一套标准来着: 转自:https://aptanastudio.tenderapp.com/faqs/using-code-assist/scriptdoc-tag-quick This page provides an at-a-glance reference for the tags for the Aptana ScriptDoc system. For comprehensive ScriptDoc tag information, including syntax and examples, see the [scriptdoc com…
2010-01-23 19:37 · javascript · 评论(0)
关于google.setOnLoadCallback()的一点研究
google.setOnLoadCallback()是google ajax api的重要方法。 在最近一个项目里,用了google的ajax api。问题是,这个方法到底在什么时候才会调用? 在google的文档里面:http://code.google.com/intl/zh-CN/apis/ajax/documentation/ 当载入文档时,google.setOnLoadCallback 被用作 window.onload 的帮助程序,这种情况只发生一次。因此,对于 API 的动态载入(例如进行了用户交互后),应当使用带有回调选项的 google.load 那么google.set…
2010-01-12 10:01 · javascript · 评论(0)
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 甚至没有发布 ECMAScript 4 细则。 过去几年,诸如 Nitro , TraceMonkey 一类的 JavaScript 引擎发展迅猛,JavaScript 成了 Google Wave 一类应用的新宠。鉴于此,EC…
2009-12-28 21:17 · javascript · 评论(6)
网上的几个applescript例子
清空idle进程 property ticsSinceActive : 0 property idleTime : 60 -- time to idle, in seconds property timeLimit : 10 -- memory range, in minutes property cpuUsage : {} on idle set maxTicCount to timeLimit * 60 / idleTime tell application "System Events" if exists (some process whose name contains "Illu…
2009-12-18 10:47 · mac · 评论(0)
Javascript 事件编程 (二)
Event Handlers and the this Keyword 事件处理程序和this关键字 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 that target element. This behavior is useful and unsurprising. Be sure, however, that you understand the implica…
2009-09-18 21:28 · javascript · 评论(0)
xcode初探
XCode是APPLE提供的免费IDE,所有语言通吃:JAVA、C++、C、Object C++等等。 这个工具的初衷是为了提供一个再MAC下可用的强大开发工具。 这个工具可以很方便的位MAC开发各种各样的系统插件、浏览器插件等等 用它进行Cocoa开发才是最强大的选择。这个工具也是开发iphone应用的首选…… 如果你要用它进行开发C、Java也是没有问题的。 本人主要用它做C的命令行开发……笑……杀鸡用牛刀了 JAVA开发还是Eclipse最强吧,所以暂时不想换。 Xcode 3以后的版本已经看不到新建JAVA工程的选项了,只有在Window>Organizer里面添加一个JAVA工程。…
2009-09-14 09:40 · mac · 评论(1)
Javascript 事件编程 (一)
Events and Event Handling 事件和事件处理 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 original event model, an event is an abstraction internal to the web browser, and JavaScript code cannot manipulat…
2009-09-04 15:27 · javascript · 评论(0)
Javascript CSS编程 (一)元素定位、透明、内联样式
Querying Element Position and Size 查询元素坐标和大小 the offsetLeft and offsetTop properties of an element return the X and Y coordinates of the element. the offsetWidth and offsetHeight properties return the width and height. These properties are read-only and return pixel values as numbers (not as CSS st…
2009-09-03 14:29 · javascript · 评论(0)
Javascript CSS编程 (二)Computed Styles、Class修改、操作样式表
Scripting Computed Styles 计算样式 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 the element. This aggregate style information can then be used to correctly render the element in the browser wi…
2009-09-03 13:15 · javascript · 评论(0)
Javascript DHTML动画
JS实现的动画效果多半是用timmer实现的某个属性不断改变的过程。以下这个写好的函数是十分强大的~摘自JSDG 5th ed。附上我的注释: /** * AnimateCSS.js: * This file defines a function named animateCSS(), which serves as a framework * for creating CSS-based animations. The arguments to this function are: * * element: The HTML element to be animated. * numFra…
2009-09-03 13:00 · javascript · 评论(0)
Javascript IE4 DOM
很多IE独有的DOM特性是沿袭自IE4的,所以有必要看看IE4 DOM的特性,与W3C的DOM模型有所区别。 IE 4 does not support childNodes[], but it provides a similar children[] array on its Document and HTMLElement objects. IE 4 does not have a Text node type and does not consider strings of text to be children. the textual content of a tag is av…
2009-09-02 17:14 · javascript · 评论(0)