2013年2月21日
摘要: SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE function [dbo].[SplitString]( @Input nvarchar(max), @Separator nvarchar(max)=',', @RemoveEmptyEntries bit=1 )returns @TABLE table ( [Id] int identity(1,1), [Value] nvarchar(max)) asbegin declare @Index int, @Entry nvarchar(max) set @Index = 阅读全文
posted @ 2013-02-21 14:37 Haydy 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 方法一Array.prototype.del = function() { var a = {}, c = [], l = this.length; for (var i = 0; i < l; i++) { var b = this[i]; var d = (typeof b) + b; if (a[d] === undefined) { c.push(b); a[d] = 1; } } return c; } alert([1, 1, 2, 3, 4, 5, 4, 3, 4, 5, 5, 6, 7,4].del());方法二//去重复数组 function unique(data){ 阅读全文
posted @ 2013-02-21 10:50 Haydy 阅读(196) 评论(0) 推荐(0) 编辑