04 2014 档案
摘要:项目中用的jquery1.9 今天需要检测一个checkbox的选中状态,想当然的用 .attr("checked") ,结果发现,无论是否选中,这个值都是 undefined 未定义。折腾了半天,无奈,只能取jq官网看看文档,发现有这么一段说明As of jQuery 1.6, the.attr()method returnsundefinedfor attributes that have not been set. In addition,.attr()should not be used on plain objects, arrays, the window, o
阅读全文
摘要:--sp_helpdb--查看可用数据库 declare @name sysname, @sql nvarchar(4000)DECLARE roy CURSOR FOR --排除不分离的数据库名就行了SELECT name FROM sysdatabases where name not in ('master','tempdb','pubs','Northwind','msdb','model')open royFETCH NEXT FROM roy INTO @nameWHILE @@FETC
阅读全文