一个投票的柱形图jquery实现代码
使用jquery做了一个投票的柱形图,超级简单.
不想刷新页面,及时的看到投票比例效果图,一般的网站投票都使用flash进行实现或者使用图片,但是那个感觉有点太复杂了,而且我也不会flash、画图,使用就选用了jquery跟背景颜色设置。
使用jquery做了一个投票的柱形图,超级简单.
不想刷新页面,及时的看到投票比例效果图,一般的网站投票都使用flash进行实现或者使用图片,但是那个感觉有点太复杂了,而且我也不会flash、画图,使用就选用了jquery跟背景颜色设置。
本文非原创,转自http://www.cnblogs.com/mrthink /archive/2010/12/02/1894143.html
jQuery核心中, 有一组队列控制方法, 这组方法由queue()/dequeue()/clearQueue()三个方法组成, 它对需要连续按序执行的函数的控制可以说是简明自如, 主要应用于animate ()方法, ajax以及其他要按时间顺序执行的事件中.
本文非原创正想总结一下,网上有人总结了,本文从网上百度文档下载,鉴于自己文采有限,写原创文章时间有限
以后本栏目及本博客也收集一些精彩好文章,
先给一个例子:
英文版地址:http://net.tutsplus.com/tutorials/javascript-ajax/jquery-1-4-released-the-15-new-features-you-must-know/
本文非原创
1. 传参给 jQuery(…)
之前,jQuery可以通过 attr 方法设置元素的属性,既可传属性的名和值,也可以是包含几组特定 属性名值对 的 对象。在 jQuery 1.4 中,你可以把一个参数对象作为第二个参数传给 jQuery 函数本身,同时创建HTML元素。
http://trentrichardson.com/Impromptu/index.php 想找个弹出confirm效果,感觉不错 其中一个A nice clean blue theme.官方有demo $.prompt('Hello World!!',{ buttons:{Ok:true,Cancel:false}, prefix:'cleanblue' })%
mark一个jquery confirm插件 http://nadiana.com/jquery-confirm-plugin
$.ajax({
..
success:function(json)
{
..
}
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(textStatus);
}
});
Today I went out comp. it seems big dust is blowing,look closer is the snow.of course it diffierent of yesterday's
which called sleet. it means rain and snow togather.rain contains snow.Today I want's learn jquery.contains().
jQuery.contains( container, contained )
Returns: Boolean
sample :
地址http://blog.jquery.com/2010/02/19/jquery-142-released/
好像出个delegate 委托函数吗?
官方举个例子,三个是等效的
$("table").delegate("td", "hover", function(){
$(this).toggleClass("hover");
});
因为jquery中有几个新特性非常需要比如has,于是用上1.4了,
但是有个小问题,原来的数据无法返回读出来,
排查了插件没有问题,看到1.4文档中说明,说1.4中对json格式更严格了,于是往这里找原因,
尝试下成功了!
简单记录,积少成多!
Jquery 1.4中文文档在线阅读
http://jquery-api-zh-cn.googlecode.com/svn/trunk/xml/jqueryapi.xml
CHM版下载地址:http://jquery-api-zh-cn.googlecode.com/files/jQueryAPI-100204.zip