
javascript
iteye_15479
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Extjs 4 : Customize Legend of Pie Chart
Unlike extjs 3, pie chart of Extjs 4 can be customized according to your requirment. For example, in my application, I need to customize pie chart's legend to show a combination of both category an...原创 2011-06-09 18:43:20 · 182 阅读 · 0 评论 -
Execution Context in JavaScript
Do you know the output of the code below:[code="javascript"](function() { console.log(typeof foo); // function pointer console.log(typeof bar); // undefined var foo = 'hello',...原创 2013-01-18 22:46:10 · 135 阅读 · 0 评论 -
Secrets of the JavaScript Ninja -- 1
[b]Chapter 3Scoping and functions[/b][u]Scoping rules in Javascript:[/u]1. Variable declarations are in scope from their point of declaration to the end of the function within which they a...原创 2013-01-17 17:03:17 · 161 阅读 · 0 评论 -
使用ExtJS做动画效果
这是个动画效果的例子,作出一个小球弹跳然后静止.先是一个div:它的css:#ball{border-radius: 50px;width: 100px;height: 100px;background-color: red;position: absolute;y: 50px;x: 100px;}然后ExtJS代码:[c...原创 2012-11-15 15:11:06 · 209 阅读 · 0 评论 -
ExtJs Event Delegation
Event handlers are a common cause of memory leaks and can cause performance degradation when not managed carefully. The more event handlers we create the more likely we are to introduce such problems,...原创 2012-11-15 14:06:28 · 149 阅读 · 0 评论 -
ExtJS 的event handler的scope
[code="javascript"]var button = Ext.create('Ext.button.Button', { text: 'My Test Button', listeners: { click: function(button, e, options){ alert(this.text); } }...原创 2012-11-14 22:00:57 · 159 阅读 · 0 评论 -
Ext.bind() 方法
[code="javascript"]var cat = {sound: 'miaow',speak: function(){alert(this.sound);}};var dog = {sound: 'woof',speak: function(){alert(this.sound);}};cat.speak(); // alerts 'mi...原创 2012-11-14 21:54:37 · 809 阅读 · 0 评论 -
extjs mixin example
[code="javascript"]//1. Define our simple mixin class called HasCamera with a single //method called takePhoto:Ext.define('HasCamera', {takePhoto: function(){alert('Say Cheese! .... Click!');...原创 2012-11-14 17:29:06 · 218 阅读 · 0 评论 -
What's the difference between a jQuery object and a DOM element?
http://http://stackoverflow.com/questions/6942193/whats-the-difference-between-a-jquery-object-and-a-dom-element-difference-betwI got an answer from above.[quote]HTML != DOM != Javascript != j...原创 2012-09-28 17:26:01 · 126 阅读 · 0 评论 -
Javascript Replace innerHTML throwing Unknown Runtime Error
Quite annoying...IE sucks... http://stackoverflow.com/questions/555965/javascript-replace-innerhtml-throwing-unknown-runtime-error I encountered this problem when I want to change a table's ...原创 2011-11-30 12:18:09 · 117 阅读 · 0 评论 -
Faster InnerHTML
http://blog.stevenlevithan.com/archives/faster-than-innerhtml I got performance boost in my FF rather than IE, quite weird, anyway, I think it's useful.原创 2011-11-23 17:18:35 · 104 阅读 · 0 评论 -
ajax css optimization
http://blog.zimbra.com/blog/archives/2006/01/ajax-and-css-optimization.html原创 2011-04-15 12:59:29 · 84 阅读 · 0 评论 -
How to make extjs grid selectable
[code="javascript"]Ext.core.Element.prototype.unselectable = function() { var me = this; if (me.dom.className.match(/(x-grid-table|x-grid-view)/)) { return...原创 2012-07-05 14:42:00 · 128 阅读 · 0 评论 -
Using rowexpander in extjs4
Add code snippe below to your grid: plugins: [{ ptype: 'rowexpander', rowBodyTpl : [ '<p>{yourcolumn}</p>' ] }...原创 2012-01-31 16:35:46 · 158 阅读 · 0 评论 -
JavaScript, 5 ways to call a function
http://devlicio.us/blogs/sergio_pereira/archive/2009/02/09/javascript-5-ways-to-call-a-function.aspx原创 2011-04-06 14:45:08 · 114 阅读 · 0 评论 -
jquery lazy loading
最近玩了一下jquery,主要是在做的一个小工具要在一个web page里显示一个表格,表格每一行有一个图片,大约有几万行,所以问题是一下子load下来吃不消了。对于前端我是门外汉,网上搜了一下,发现有个lazy load的插件,jquery写的。这个是官方网站:http://www.appelsiini.net/projects/lazyload但是因为这玩意很早写的,后来浏览器发展...原创 2011-10-26 15:24:15 · 137 阅读 · 0 评论 -
Pie Chart With Small Value Renders Incorrectly in IE
这个bug是我在使用extjs 4的pie chart的时候发现的,貌似还没有解决。 http://www.sencha.com/forum/showthread.php?137809-4.0.2a-Pie-Chart-with-small-value-renders-incorrectly-in-IE&p=616611...原创 2011-09-02 14:26:27 · 85 阅读 · 0 评论 -
Great HTML5 Example
This author shows how to draw interactive pie chart with html5.http://www.elated.com/articles/snazzy-animated-pie-chart-html5-jquery/原创 2011-07-07 18:05:38 · 135 阅读 · 0 评论 -
Date/Time处理函数总结 [To Do]
几种我所用到的用来处理日期,时间的函数总结。[u][b]Perl[/b][/u]1. localtime[code="perl"] # 0 1 2 3 4 5 6 7 8 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);[/code]I...原创 2013-04-12 10:46:39 · 319 阅读 · 0 评论