`
Zsb007
  • 浏览: 57538 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论
文章列表
C#正则表达式小结 只能输入数字:"^[0-9]*$"。 只能输入n位的数字:"^\d{n}$"。 只能输入至少n位的数字:"^\d{n,}$"。 只能输入m~n位的数字:。"^\d{m,n}$" 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。 只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。 只能输入有1~3位小数的正实数:"^[0-9]+(.[0-9]{1,3})?$"。 只能输入非零的正整 ...
Introduction It seems like everyone needs to parse XML these days. They’re either saving their own information in XML or loading in someone else’s data. This is why I was glad to learn that as of Python 2.5, the ElementTree XML package has been added to the standard library in the XML module. Wha ...
#Python字符串操作 '''1.复制字符串''' #strcpy(sStr1,sStr2) sStr1 = 'strcpy' sStr2 = sStr1 sStr1 = 'strcpy2' print sStr2 '''2.连接字符串''' #strcat(sStr1,sStr2) sStr1 = 'strcat' sStr2 = 'append' sStr1 += sStr2 print sStr1 '''3.查找字符''' #strchr(sStr1,sStr2) sStr1 = 'strchr' sStr2 = 'r' nPos = sStr1. ...
Flex组件的一些怪问题 Submitted by john on Wed, 02/03/2010 - 00:24 Flex的大部分组件提供了measureText()方法,我们可以用此方法来计算字符串的实际需要的像素也就是字符串的宽度。此方法非常有用,因为当一个组件不可见的时候我 ...
易语言4.1快捷键统一自定义,与建议的新功能  在看下面的内容时,请先明白一点。易语言是MDI多文档界面,可以同时编辑多种格式的窗口。在此,我把【可视化窗口】,称为“窗口页”。把【程序集、DLL命令定义表】等,称为“代码页”。正如很多软件有两个状态一样,我现在把易语言的快捷键分为“窗口页”与“代码页”两种状态。这样就不会引起冲突,大大增加了快捷键的利用率。另外,我自定义的快捷键在前面加上“★”,“■”是菜单的明解(即简单明了的解释),“●”是我加的修改意见。┌────┐│&F 程序│注:├────┘│&N 新建  ★ctrl+shift+N ■新建一个程序│&O 打 ...
http://www.hackbase.com 全球最大的黑客门户网站
var item:Object=Tree(event.currentTarget).selectedItem; if(tree.dataDescriptor.isBranch(item)) { tree.expandItem(item,!tree.isItemOpen(item),true); }
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" fontFamily="宋体" fontSize="12" width="831" height="448"> <mx:Panel id="sourc ...
转:http://dxm1986.iteye.com/blog/686288
  flex特效 [ 2009-11-9 8:37:00 | By: Hube ]  
Flex TextInput 禁止输入特殊字符 <mx:TextInput  restrict="^\~\!\@\#\$\%\*\(\)\_\+\-\=\!\¥\…\(\)\&\^"/>
loader  主体: package  com.dihtech.regionalhealth.healthrecord.personalhealthrecord.compoments { import flash.display.Sprite;    import flash.events.Event;    import flash.events.ProgressEvent;    import flash.events.TimerEvent;    import flash.text.TextField;    import flash.utils.Tim ...
<?xml version="1.0"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script>       <![CDATA[           import mx.core.UIComponent;         import mx.core.BitmapAsset;         //导入BMPDecoder      import imageDecoder.BMPDecoder;         privat ...
<?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2007/08/15/creating-tool-tips-manually-using-the-tooltipmanager-class/ --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" ...
发现谷歌浏览器器也读缓存  没办法   req.url="http://localhost:8080/RegionalHealth/starthealth.html"+"?t="+new Date().getSeconds();
Global site tag (gtag.js) - Google Analytics