上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: Response.Clear(); Response.ClearContent(); Response.ClearHeaders(); Response.ContentType = "application/octet-stream ; Charset=UTF8"; Response.CacheControl = "public"; string realFileName = fileName.IndexOf('_') > 0 ? fileName.Remove(0, fileName.IndexOf('_') + 阅读全文
posted @ 2012-02-29 09:18 (二少)在南极 阅读(568) 评论(0) 推荐(0) 编辑
摘要: function base() { this.member = " dnnsun_Member"; this.method = function() { window.alert(this.member); }}function extend() { //debugger // base.call(this,method); // window.alert(member); // window.alert(this.method); base.apply(this,"1"); alert(member);}</script> 阅读全文
posted @ 2011-12-19 01:25 (二少)在南极 阅读(157) 评论(0) 推荐(0) 编辑
摘要: /** 获取任意字符串中的数据 **/var a = "123aa33a3";var re = /[a-zA-Z]/gvar result = a.replace(re, ''); alert(result); 阅读全文
posted @ 2011-12-03 19:34 (二少)在南极 阅读(413) 评论(0) 推荐(0) 编辑
摘要: $.ajax({ url:"http://www.microsoft.com", //请求的url地址 dataType:"json", //返回格式为json async:true,//请求是否异步,默认为异步,这也是ajax重要特性 data:{"id":"value"}, //参数值 type:"GET", //请求方式 beforeSend:function(){ //请求前的处理 }, success:function(req){ //请求成功时处理 }, complete:funct 阅读全文
posted @ 2011-11-27 11:57 (二少)在南极 阅读(44353) 评论(1) 推荐(2) 编辑
摘要: create function dbo.GetNumber(@Num varchar(32))returns varchar(32)asbegindeclare @i intwhile patindex('%[a-Z]%',@Num) > 0beginset @i = patindex('%[a-Z]%',@Num)set @Num = stuff(@Num,@i,1,'')endset @Num = replace(@Num,' ','')return @NumendCreate Function GetA 阅读全文
posted @ 2011-11-23 22:57 (二少)在南极 阅读(235) 评论(0) 推荐(0) 编辑
摘要: functiondrag(overFlow,title){ title.onmousedown=function(evt){ vardoc=document; varevt=evt||window.event; varx=evt.offsetX?evt.offsetX:evt.layerX; vary=evt.offsetY?evt.offsetY:evt.layerY; if(overFlow.setCapture){ overFlow.setCapture(); }elseif(window.captureEvents){ window.captureEvents(Event.MOUSEM 阅读全文
posted @ 2011-11-22 22:19 (二少)在南极 阅读(2838) 评论(0) 推荐(0) 编辑
摘要: varnow=newDate(); vardates=['日','一','二','三','四','五','六']; document.write("<spanstyle='color:#ff9'>"+now.getFullYear()+"年"+(now.getMonth()+1)+"月"+now.getDate()+"日"+"星期"+dates[now.ge 阅读全文
posted @ 2011-11-22 19:32 (二少)在南极 阅读(128) 评论(0) 推荐(0) 编辑
摘要: <script>function rdl_fnSwap(){oList.children(2).swapNode(oList.children(1));}</script><ul id = oList><li>第1个列表项目<li>第2个<a href="#" onclick="return false;">列表项目</a><li style="font-weight:bold;">第3个列表项目<li>第4个列表项目</ 阅读全文
posted @ 2011-11-22 13:54 (二少)在南极 阅读(9781) 评论(0) 推荐(0) 编辑
摘要: 编辑器加载中 Select o.name AS tableName, c.name AS columnName, p.[value] AS Description FROM sysproperties p INNER JOIN sysobjects o ON o.id = p.id INNER JOIN syscolumns c ON p.id = c.id AND p.smallid = c.colid Where (p.name = 'MS_Description') AND (c.name = 'province') AND (o.name = ' 阅读全文
posted @ 2011-11-17 23:03 (二少)在南极 阅读(727) 评论(0) 推荐(0) 编辑
摘要: Array.prototype.unique=function(){ vara={}; varlen=this.length; for(vari=0;i<len;i++){ if(typeofa[this[i]]=="undefined") a[this[i]]=1; } this.length=0; for(variina) this[this.length]=i; returnthis; }vararr=[1,1,1,2,2,2,3,3,4,4]; arr.unique(); alert(arr.toString()); 阅读全文
posted @ 2011-11-15 15:00 (二少)在南极 阅读(171) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页