2014-12-12 林长宇
jQuery UI's widget factory makes it easy to build widgets that extend the functionality of existing widgets. Doing so allows you to build powerful widgets on top of an existing base, as well as make small tweaks to an existing widget's functionality. 继续阅读 »
2014-12-12 林长宇
How To Use the Widget Factory To start, we'll create a progress bar that just lets us set the progress once. As we can see below, this is done by calling jQuery.widget() with two parameters: the name of the plugin to create, and an object literal containing functions to support our plugin. When our plugin gets called, 继续阅读 »
2014-12-05 林长宇
概述   定义:以微信传播为主要渠道的 HTML5 应用   技术:HTML5、JS、CSS、Jquery、Zepto、collie   资源:PSD、JPG、PNG、MP4、MP3、OGG   设备:Google Nexus 5以上,三星Galaxy Notes以上,iPhone4以上   继续阅读 »
2014-12-01 林长宇
Custom URL scheme 的好处就是,你可以在其它程序中通过这个url打开应用程序。如A应用程序注册了一个url scheme:myApp, 那么就在mobile浏览器中就可以通过打开你的应用程序A。 继续阅读 »
2014-11-27 林长宇
国内的互联网企业有许多开源项目,其中就包括前端的很多优秀框架,摘录如下: 网易 NEC http://nec.netease.com/ 网易员工开源的CSS框架,特别是整理出一套规范,很值得研究。 NEJ http://nej.netease.com/ 继续阅读 »
2014-11-27 林长宇
HTML5中的canvas可以实现很多图像、多媒体方面的功能,比如把视频的内容二次处理后在canvas上显示。 强大的drawImage var video = document.querySelector('video'); var canvas1 = document.querySelector('#canvas1'); var ctx1 = canvas1.getContext('2d'); ctx1.drawImage(video, 0,0, 320, 180, 0,0, 320, 180); 继续阅读 »
2014-11-26 林长宇
本文译自http://www.raywenderlich.com。原文由iOS教程团队 Matthijs Hollemans 撰写,经原网站管理员授权本博翻译。 在iOS系统,考虑到手机电池电量,应用不允许在后台进行过多的操作,当用户未开启应用时,要怎么样才能通知用户呢? 继续阅读 »
2014-11-26 林长宇
在iOS 5 中,苹果引入了一个解析JSON串的NSJSONSerialization类。 通过该类,我们可以完成JSON数据与NSDictionary和NSArray之间的转化。 以前,我记得我用的是第三方的插件。但是,苹果出了这套解析后,效率也大大了超过了其他的JSON解析第三方类库。所以,推荐使用NSJSONSerialization类来完成转化。 继续阅读 »
2014-11-25 林长宇
Sangmin is a Senior JavaScript developer working at NHN and the creator of the JavaScript animation library Collie. I use collie framework to developed some HTML5 game. 继续阅读 »
2014-11-25 林长宇
rubygems.org is slowly to visite in China, Use Taobao source to speen gem install. More information visit http://ruby.taobao.org/. 继续阅读 »