http://learn.jquery.com/plugins/basic-plugin-creation/ 如何创建一个基本的插件 有时候你想在整个代码中提供一些功能. 例如,也许你想要一个单一的方法,你可以调用一个jQuery selection来对selection执行一系列操作. 在这种情况下,您可能需要编写一个插件. jQuery如何工作:jQuery对象方法 在我们编写自己的插件之前,我们必须先了解一下jQuery的工作原理. 看看这个代码: $( "a" ).css( &…
How to Create a Basic Plugin Sometimes you want to make a piece of functionality available throughout your code. For example, perhaps you want a single method you can call on a jQuery selection that performs a series of operations on the selection. I…
Sometimes you want to make a piece of functionality available throughout your code. For example, perhaps you want a single method you can call on a jQuery selection that performs a series of operations on the selection. In this case, you may want to…
官方插件:http://learn.jquery.com/plugins/basic-plugin-creation/ $.extend方法和$.fn.extend方法都可以用来扩展jQuery功能. 本质区别: $.extend方法是在jQuery全局对象上扩展方法 (类似C#中的静态方法) $.fn.extend方法是在$选择符选择的jQuery对象上扩展方法  (类似C#中的实例方法) 故扩展jQuery的公共方法一般用$.extend方法,定义插件一般用$.fn.extend方法 1.$…
[Create a Basic Shader in Shader Forge] 1.打开ShaderForge.Window-> Shader Forge.(打开速度较慢) 2.通过NewShader按钮创建一个新Shader. 3.左上角Compile Shader会显示当前Shader的状态. 4.中央的面板显示Shader Forge的逻辑图. 5.在右侧,是一系列的可选对象,如Arithmetic.Properties.Constant Vector等. 6.创建完Shader后,在pr…
原文链接:http://remysharp.com/2010/06/03/signs-of-a-poorly-written-jquery-plugin/ 原文作者:remy sharp So far with every single workshop I’ve given, both for advanced JavaScript and jQuery for Designers, this question (or some variation thereof) has come up:…
自己翻译,加强理解.并学习英文和写作. 英文地址:http://docs.openstack.org/networking-guide/intro_basic_networking.html 目录: Basic networking Ethernet VLANs Subnets and ARP DHCP IP TCP/UDP/ICMP 基础网络 Ethernet以太网 Ethernet is a networking protocol, specified by the IEEE 802.3 s…
下载:https://github.com/tuupola/jquery_lazyload 使用:http://www.appelsiini.net/projects/lazyload 翻译:http://www.neoease.com/lazy-load-jquery-plugin-delay-load-image/ http://stylechen.com/lazy-load.html demo:http://www.appelsiini.net/projects/lazyload/enab…
一个web前端工程师,应该知道jquery的.live()函数,知道它是做什么用的,但是不知它是怎么样工作的,使用起来也是不得得心应手的,甚至也没听说过.die()(去掉bind事件).即使你能熟悉这些,但是你能意识到.die()的问题所在吗?  什么是.live()? 函数的.live()类似.bind(),除此之外,它允许你绑定事件DOM元素,现在和动态生成出来的dom节点,你可以绑定事件不存在的元素. 比方说当用户在点击链接时及想提示他们正在离开站点. $(document).ready(…
❝ 本文章共3470字,预计阅读时间5-10分钟. ❞ 国际化-前言 每个开发者能希望编写的程序可以让全世界的用户使用,它要求从产品中抽离所有地域语言,国家/地区和文化相关的元素.换种说法,「应用程序」的功能和「代码设计」时考虑在不同地区运行的需要,其代码适应不同区域要求.开发这样的的过程,就称为国际化( internationalization),简称i18n. ❝ i18n(其来源是英文单词 internationalization的首末字符i和n,18为中间的字符数)是"国际化"…