文章分类 -  javascript

摘要:from url http://sixrevisions.com/javascript/6-advanced-javascript-techniques-you-should-know/There have been a number of articles published over the years that discuss best practices techniques for JavaScript. I thought I would go a little bit beyond the scope of those articles and outline a number 阅读全文
posted @ 2013-01-07 11:52 来自非洲大草原的食人虎 阅读(118) 评论(0) 推荐(0)
摘要:/** * jquery.scrollFollow.js * Copyright (c) 2008 Net Perspective (http://kitchen.net-perspective.com/) * Licensed under the MIT License (http://www.opensource.org/licenses/mit-license.php) * * @author R.A. Ray * * @projectDescription jQuery plugin for allowing an element to animate down as the use. 阅读全文
posted @ 2012-12-24 16:58 来自非洲大草原的食人虎 阅读(317) 评论(0) 推荐(0)
摘要:example code<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title></title><script src="jquery-1.4.min.js&qu 阅读全文
posted @ 2011-11-10 21:05 来自非洲大草原的食人虎 阅读(122) 评论(0) 推荐(0)
摘要:Javascript Best Practicesfrom http://www.slideshare.net/cheilmann/javascript-best-practices-1041724无意之中看到这篇文章,想到自己平时写JS时都不注意这些细节,把其中一些有用的记下 Avoid globals,Global variables are a terribly bad idea.You run the danger of your code being overwritten by any other javascript added to the page after yours. 阅读全文
posted @ 2011-03-10 11:23 来自非洲大草原的食人虎 阅读(246) 评论(0) 推荐(0)