摘要: 选择器是jQuery最基础的东西,本文中列举的选择器基本上囊括了所有的jQuery选择器,也许各位通过这篇文章能够加深对jQuery选择器的理解,它们本身用法就非常简单,我更希望的是它能够提升个人编写jQuery代码的效率。本文配合截图、代码和简单的概括对所有jQuery选择器进行了介绍,也列举出了一些需要注意和区分的地方。一、基本选择器1. id选择器(指定id元素)将id="one"的元素背景色设置为黑色。(id选择器返单个元素)$(document).ready(function () { $('#one').css('background&# 阅读全文
posted @ 2012-08-21 17:36 hanwest 阅读(144) 评论(0) 推荐(0) 编辑
摘要: declare @i as int declare @begintime as datetime set @begintime = getdate() set @i = 0 while @i < 100 begin insert into TestT (title,info,flag) values ('title'+cast(@i as varchar),'info'+cast(ceiling(rand() * 100) as varchar ),ceiling(rand() * 2)) set @i = @i + 1 end select datedi 阅读全文
posted @ 2012-08-21 14:59 hanwest 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 验证码生成:ValiImage.ashxusing System; using System.Collections; using System.Data; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Drawing; using System.IO; using System.Web.SessionState; namespace TestWeb { /// <summary> /// 简单的验证码 /// </summa... 阅读全文
posted @ 2012-08-21 14:52 hanwest 阅读(152) 评论(0) 推荐(0) 编辑