一、创建类:Test.java//定义类public class Test{ //属性 String name; String gender; int age; //方法,无参无返回 public void eat(){ System.out...
分类:
编程语言 时间:
2015-05-24 23:09:30
阅读次数:
195
字符串的操作在js中非常频繁,也非常重要。以往看完书之后都能记得非常清楚,但稍微隔一段时间不用,便会忘得差不多,记性不好是硬伤啊。。。今天就对字符串的一些常用操作做个整理,一者加深印象,二者方便今后温习查阅。String对象属性(1) length属性length算是字符串中非常常用的一个属性了,它...
分类:
编程语言 时间:
2015-05-24 23:07:39
阅读次数:
219
APPEND key value 如果key已经存在,并且为字符串,那么这个命令会把value追加到原来值的末尾。如果key不存在,首先创建一个空字符串,再执行追加操作。 返回值:返回APPEND后字符串的长度。EXISTS mykey0APPEND mykey "Hello"5APPEND m.....
分类:
其他好文 时间:
2015-05-24 21:47:59
阅读次数:
170
/如果本文有不对的地方,望即时指点!字符串的初始化定义一个UNICODE_STRING类型的变量,这只是一个空的结构体而已,我们并没有给它分配任何的内存。如果直接对其进行字符串拷贝等操作,肯定会 引起异常的,当我们定义这样类型的一个变量,我们应该就把它看作一个WCHAR型的指针,没有“new”空间,...
分类:
其他好文 时间:
2015-05-24 21:45:13
阅读次数:
194
方法一:在类路径下寻找配置来实例化容器1 ApplicationContext ctx = new ClassPathXmlApplicationContext( 2 new String[]{"beans.xml"});方法二:在文件系统路径下寻找配置文件来实例化容器1 ApplicationCo...
分类:
编程语言 时间:
2015-05-24 21:42:40
阅读次数:
128
判断产品版本号的大小。public class Solution { public int compareVersion(String version1, String version2) { String[] v1 = version1.split("\\."); ...
分类:
其他好文 时间:
2015-05-24 20:15:34
阅读次数:
102
1. 数据库中添加用户信息app/models.py: 添加用户资料列class User(UserMixin, db.Model): #... name = db.Column(db.String(64)) location = db.Column(db.String(64)) ...
分类:
其他好文 时间:
2015-05-24 18:40:36
阅读次数:
1533
Android 高德地图 java.lang.UnsatisfiedlinkError Native method not found: com.autonavi.amap.mapcore.MapCore.nativeNewInstance:(Ljava/lang/String;)
遇到一个bug 别的机型上没有碰到 只在lenovo的手机上 使用高德地图出现了bug 看了下log日志出现了 Native method not found: com.autonavi.amap.mapcore....
分类:
移动开发 时间:
2015-05-24 17:33:54
阅读次数:
952
/*
Description:
The strstr function locates the firstoccurrence in the string pointed to by s1 of the sequence of characters(excluding the terminatingnull character)in the string pointed to by s2...
分类:
其他好文 时间:
2015-05-24 17:29:24
阅读次数:
135
后台:public partial class WMCData_mapTest_Default : System.Web.UI.Page{ protected string strs = string.Empty; protected void Page_Load(object sender, Ev...
分类:
Web程序 时间:
2015-05-24 17:01:58
阅读次数:
169