文章分类 -  jquery/ajax/javascript

摘要:闲来无事,参考 http://docs.jquery.com/Types 总结下jQuery中的数据类型。jQuery除了包含原生JS中的内置数据类型(built-in datatype),还包括一些扩展的数据类型(virtual types),如Selectors、Events等。1. String String最常见,几乎任何一门高级编程语言和脚本语言中都支持,比如"Hello world!"即字符串。字符串的类型为string。比如 var typeOfStr = typeof "hello world";//typeOfStr为“string&q 阅读全文
posted @ 2013-11-02 21:34 代码茶 阅读(90) 评论(0) 推荐(0)
摘要:1、获取单个checkbox选中项(三种写法)$("input:checkbox:checked").val() 或者$("input:[type='checkbox']:checked").val();或者$("input:[name='ck']:checked").val();2、 获取多个checkbox选中项$('input:checkbox').each(function() { if ($(this).attr('checked') ==true) { ale 阅读全文
posted @ 2013-11-02 00:28 代码茶 阅读(108) 评论(0) 推荐(0)
摘要:取表格当前行数据js代码:$(function() { $(".myclass").each(function(){ var tmp=$(this).children().eq(3); var btn=tmp.children(); btn.bind("click",function(){ var id=btn.parent().parent().children("td").get(0).innerHTML; var name=btn.parent().parent().children("td").get(1) 阅读全文
posted @ 2013-10-25 19:30 代码茶 阅读(180) 评论(0) 推荐(0)
摘要:ProntoA jQuery plugin for faster page loads. Building on concepts like pjax and TurboLinks, Pronto is a simple way to harness the speed increases that HTML5's pushState() can provide on nearly any site imaginable.Download on GitHub Using a "partial page load" technique, Pronto reduces 阅读全文
posted @ 2013-10-08 23:53 代码茶 阅读(206) 评论(0) 推荐(0)
摘要:September 20th, 2012September 2012 Release of the Ajax Control ToolkitI’m excited to announce the September 2012 release of the Ajax Control Toolkit! This is the first release of the Ajax Control Toolkit which supports the .NET 4.5 framework. We also continue to support ASP.NET 3.5 and ASP.NET 4.0.W 阅读全文
posted @ 2013-09-28 11:50 代码茶 阅读(449) 评论(0) 推荐(0)
摘要:My B/M tutorial provides a good introduction to benefits of Bundling and Minification. You should read it to become familiar with the bundling and minification. This blog will focus on using B/M with Web Forms, my B/M tutorial focused on ASP.NET MVC.Create a new ASP.NET Web Forms application which t 阅读全文
posted @ 2013-09-25 14:29 代码茶 阅读(142) 评论(0) 推荐(0)