11 2011 档案
摘要:$.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());
阅读全文
摘要:jQuery(function () { var jid= $("#test"); var did=jid.get(0); if(did.addEventListener){ did.addEventListener('click',function () { alert(e); },false); alert("lister"); } if(did.attachEvent) { did.attachEvent("onclick",function () {alert(2); }); alert("attac
阅读全文
摘要:学习总结给SELECT 添加选择项jQuery(function () { for(var j=1;j<=12;j++) jQuery("#SelectMonth").append("<option value='"+j+"'>"+j+"</option>"); });选择 根据ID和值选中某一项jQuery("#SelectYear option[value='"+year1[0]+"']").attr(&quo
阅读全文

浙公网安备 33010602011771号