jquery ajax提交错误定义方法
$.ajax({
..
success:function(json)
{
..
}
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(textStatus);
}
});
$.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
一觉睡醒,打开就jquery网站发现已经到1.4版本,新版本好像增加好多新的东西
http://api.jquery.com/category/version/1.4/
最近互联网发生好多事情,有关于域名,cn个人无法注册了,国外godaddy支持支付宝了,无数小站被clientHold了,几大著名网站也关停几天,现在基本已恢复。还有关于最近搜索引擎的,“百度被黑,谷歌可能退出中国”,昨天海地发生地震(非互联网)。回到正题ajax jquery开发常见错误总结如下:
1.ajax jquery发送
$.ajax({ type: "POST", url: "ajax/emailhand.ashx", data: "email=" + escape(email), success: function(msg) { alert(msg);} });
2.value 为val()
今天从 cnblogs的ovERREd看到了意大利博客园,看到了一篇jquery工具的链接
http://blogs.ugidotnet.org/alessage/archive/2009/06/12/jquery-tools.aspx
记下此jquery tools工具和意大利博客园:http://blogs.ugidotnet.org
jquery tools工具:http://flowplayer.org/tools/index.html