Description
After coding so many days,Mr Acmer wants to have a good rest.So travelling is the best choice!He has decided to visit n cities(he insists on seeing all the cities!And he does not mind w...
分类:
其他好文 时间:
2014-07-30 17:37:14
阅读次数:
306
js中处理正则表达式的类:RegExp用法: var reg=new RegExp("express");或者: var reg=/express/;js中常用的6个方法: test():是否存在 exec():返回查询值 match():得到查询的数组 search():返回搜索的位置 rep.....
分类:
编程语言 时间:
2014-07-30 17:13:13
阅读次数:
282
vmlite虚拟机启动出错,就把这个虚拟机删除掉重新建立,系统虚拟硬盘使用之前的,启动系统后不能上网,通过ifconfig查看网卡没启动,遂启动网卡服务,但是出错,就是:deviceeth0doesnotseemtobepresent,delayinginitialization,然后想到是不是ifcfg-eth0的配置文件里保存了以..
分类:
其他好文 时间:
2014-07-30 12:29:54
阅读次数:
195
?匹配任意一个字符,*匹配任务多个字符(包括0)#include #include int match(const char *src, const char *pattern){ if (src == NULL || pattern == NULL) { return 0...
分类:
其他好文 时间:
2014-07-30 11:34:53
阅读次数:
193
Interface与继承不同,interface为一个类指明的是what it does而不是what it isJava中的多重继承多用implement多个interface代替(逻辑上来讲,一个is a很多的类的类通常用can do很多interface来表达会更合理)interface起名通...
分类:
编程语言 时间:
2014-07-30 05:35:23
阅读次数:
343
NSUserDefaults API中英文文档简介及使用
Overview
The NSUserDefaults class provides a programmatic interface for interacting with the defaults system. The defaults system allows an application to customize its behavior to match a user’s preferences. For example, y...
问题: hostname in certificate didn‘t match: <dl-ssl.google.com> != <www.google.com> Fetching URL: https://dl-ssl.google.com/android/... 解决办法: 第一步: 打开Windows中C:\WINDOWS\system32\drivers...
分类:
移动开发 时间:
2014-07-29 18:29:22
阅读次数:
233
1. 为什么用string::size_type而不是int?--Why usestring::size_type?intis supposed to work! it holds numbers!--A short holds numbers too. So does a signed char....
分类:
编程语言 时间:
2014-07-29 17:37:52
阅读次数:
278
/** ?* 检查输入的一串字符是否全部是数字 ?* 输入:str ?字符串 ?* 返回:true 或 flase; true表示为数字 ?*/ function checkNum(str){ ? ? return str.match(/\D/) == null; } /** ?* 检查输入的一串字符...
分类:
Web程序 时间:
2014-07-29 16:12:39
阅读次数:
216
首先声明只有在Linearlayout中,该属性才有效。之所以android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。android:layout_wei...
分类:
移动开发 时间:
2014-07-29 11:41:16
阅读次数:
228