package com.founder.fix.ims;/** * @author WANGYUTAO * 操作字符串 */public class SubString { // public static void main(String[] args) { // String s...
分类:
编程语言 时间:
2015-01-14 14:05:20
阅读次数:
211
xml 文件如下: 农用地转用 相关的代码如下:string xmlPath = Application.StartupPath + @"\config.xml";XDocument xd = XDocument.Load(xmlPath);string xmlx = "";foreac...
分类:
其他好文 时间:
2015-01-14 14:00:16
阅读次数:
116
我们经常操作messagebox类,有时候我们又分不清一些参数,下面是一些操作messageBox的常用方法: public static class ClsMsg { public static void ShowInfoMsg(string p_info) {...
分类:
其他好文 时间:
2015-01-14 14:00:01
阅读次数:
166
function arrayToJson(o) { var r = []; if (typeof o == "string") return "\"" + o.replace(/([\'\"\\])/g, "\\$1").replace(/(\n)/g, "\\n...
分类:
编程语言 时间:
2015-01-14 12:41:46
阅读次数:
120
最近在使用 ASIHTTPRequest 的过程遇到一个问题,ASI 将 返回的 data 转换成了string,然后就在 dic 前面多了一些字符,导致 string 成了一个不是有效的 json 串。// Call this method to get the received data as ...
分类:
其他好文 时间:
2015-01-14 12:34:20
阅读次数:
127
JDBC+Mysqlpublic class DBHelper { private static String driver ="com.mysql.jdbc.Driver"; private static String url ="jdbc:mysql://localhost:端口号(3306)/...
分类:
数据库 时间:
2015-01-14 12:23:28
阅读次数:
215
在MyBatis的select、insert、update、delete这些元素中都提到了parameterType这个属性。MyBatis现在可以使用的parameterType有基本数据类型和JAVA复杂数据类型
基本数据类型:包含int,String,Date等。基本数据类型作为传参,只能传入一个。通过#{参数名} 即可获取传入的值复杂数据类型:包含JAVA实体类、Map。通过#{属性...
分类:
移动开发 时间:
2015-01-14 11:14:49
阅读次数:
459
从API 8开始,新增了一个类:
android.media.ThumbnailUtils这个类提供了3个静态方法一个用来获取视频第一帧得到的Bitmap,2个对图片进行缩略处理。
public static Bitmap createVideoThumbnail (String filePath, int kind)
第一个参数是视频文件的路径,第二个参数是指定图片的大小,有两种选...
分类:
移动开发 时间:
2015-01-14 11:04:30
阅读次数:
154
如:string a("sky1"),b("sky2") ;b = a ;程序在运行的时候创建了两个对象,分别是a和b,然后调用构造函数。当执行“b=a”的时候,因为没有用户自己定义的赋值运算符函数,于是程序自动调用默认的赋值函数,两个指针指向了同一个内存,“sky2”这个空间的内存应经不能访问了。...
分类:
编程语言 时间:
2015-01-14 06:15:58
阅读次数:
201
packagecom.ctgu.beans;
importjavax.xml.transform.Templates;
importorg.omg.CORBA.PUBLIC_MEMBER;
publicclassTestArgsTransfei1{
publicstaticvoidmain(String[]args){
TestArgsTransfei1tt=newTestArgsTransfei1();
DataSwapds=newDataSwap();
System.out.pr..
分类:
其他好文 时间:
2015-01-14 01:06:43
阅读次数:
142