摘要:
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('_') + 阅读全文
摘要:
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> 阅读全文
摘要:
/** 获取任意字符串中的数据 **/var a = "123aa33a3";var re = /[a-zA-Z]/gvar result = a.replace(re, ''); alert(result); 阅读全文
摘要:
$.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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
varnow=newDate(); vardates=['日','一','二','三','四','五','六']; document.write("<spanstyle='color:#ff9'>"+now.getFullYear()+"年"+(now.getMonth()+1)+"月"+now.getDate()+"日"+"星期"+dates[now.ge 阅读全文
摘要:
<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个列表项目</ 阅读全文
摘要:
编辑器加载中 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 = ' 阅读全文
摘要:
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()); 阅读全文