public class DbHelperSQL { private static string connString = ConfigurationManager.ConnectionStrings["SqlDataSource"].ToString(); #re...
分类:
Web程序 时间:
2015-03-13 12:15:10
阅读次数:
214
[].forEach.call($$("*"),function(a){ a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})这对于调试CSS很有帮助1、获取页面上所有的元素: $$('*')==quer.....
分类:
Web程序 时间:
2015-03-12 23:54:04
阅读次数:
231
function rgb2hex(rgb) { rgb = rgb.match(/^rgb\((\d+),(\d+),(\d+)\)$/); function hex(x) { return ("0" + parseInt(x).toString(16)).slice(-2); } ret...
分类:
其他好文 时间:
2015-03-12 12:54:58
阅读次数:
124
string sKey = username.Text.ToString().Trim(); // 得到Cache中的给定Key的值 string sUser = Convert.ToString(Cache[sKey]); // 检查是否存在 if (sUser == null || sUser ...
分类:
Web程序 时间:
2015-03-11 12:13:18
阅读次数:
183
1、字符串:toCharArray()//获得字符串对应的char数组 Arrays.sort()//数组排序 Arrays.toString(char[] a)//数组转换成字符串 charAt(int x)//获得某个 TreeNode索引处的字符 length()//...
分类:
其他好文 时间:
2015-03-10 13:45:31
阅读次数:
151
ss := i.ToString + '中国人民解放军中国人民解放军中国人民解放军'; Image1.Width := Image1.Canvas.TextWidth(ss); Image1.Picture := nil; Image1.Canvas.TextOut(1, 1, ss);根据...
分类:
其他好文 时间:
2015-03-09 22:22:00
阅读次数:
147
import java.util.UUID;
public class GeneralKey {
public static String getGeneralKey(){
UUID uuid = UUID.randomUUID();
return uuid.toString().replaceAll("-", "");
}
public static void m...
分类:
编程语言 时间:
2015-03-09 17:38:36
阅读次数:
205
Lombok是一个旨在减少代码开发工作的Java库。本文介绍了如何用它来完成getter/setter方法,构造方法,以及重写equals(),hashCode()和toString()方法。在Java中,一个很简单的类却往往写得特别复杂。如果你没听说...
分类:
编程语言 时间:
2015-03-08 23:11:43
阅读次数:
506
第一个activityIntent intent = new Intent(); intent.setClass(LoginActivity.this, MainActivity.class); intent.putExtra("str", msg.obj.toString()); ...
分类:
其他好文 时间:
2015-03-08 17:06:42
阅读次数:
143
1.数字类型不能用作对象,因为javascript解析器会将点号(.)解析成浮点型(as a floating point literal),比如:2.toString();会导致语法从错误,解决方法: 2..toString();//the second point is correctly re...
分类:
其他好文 时间:
2015-03-08 16:53:17
阅读次数:
169