jQuery中JSONP的两种实现方式: 都很简单,所以直接上代码! 前台代码如下: 后台Action代码如下:public string ProcessCallback(string name, string email){ if (Request.QueryString != null) ...
分类:
Web程序 时间:
2015-04-14 16:05:48
阅读次数:
134
//备份程序 private void BackupFiles(string from,string to) { //如果原程序目录存在 if (Directory.Exists(from)) { ...
分类:
其他好文 时间:
2015-04-14 15:59:26
阅读次数:
80
// 111.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;class Person{private: string m_strName;public: Person(string str...
分类:
其他好文 时间:
2015-04-14 15:58:33
阅读次数:
133
关键词:数组的综合应用1.将数组转成字符串 定义功能,将{23,27,998}数组中的元素转成字符串”[23,27,998]” public static void toString(int[] arr){ String temp = "["; for(int i=0;i十六进制。public st...
分类:
编程语言 时间:
2015-04-14 15:57:55
阅读次数:
224
1、车牌号: /** *? * @description:验证车牌号 * @param carNum * ? ? ? ? ? ?豫A106EK * @return 合法:true 不合法:false */ public static boolean validateCarNum(String carNum) { boolean result...
分类:
编程语言 时间:
2015-04-14 14:51:54
阅读次数:
138
所谓绑定参数就是把PHP脚本中的自定义变量绑定到SQL语句中的参数(参数使用“?”代替)上,绑定参数使用bind_param()方法,该方法的语法格式如下:boolbind_param(string$types,mixed&$var1[,mixed&$...])在上述语法中涉及到的参数说明如下。types:绑定的变量的数据..
分类:
数据库 时间:
2015-04-14 14:50:13
阅读次数:
221
首先学习一下正则表达式的语法规则,如下:
IP地址通常是类似:10.221.105.225的格式,不能以0开头,每个字段最大不超过255,不小于0
IP匹配规则:
String ip = "([1-9]|[1-9][0-9]|1\\d\\d|2[0-4]\\d|25[0-5])\\." +
"([1-9]|[1-9][0-9]|1\\d\\d|2[0-...
分类:
其他好文 时间:
2015-04-14 14:40:22
阅读次数:
148
1.图片设置为灰色
source:图片路经源
dest:图片目的地
public static void toGrayImage(String source, String dest)
{
try
{
Bitmap bitmap = BitmapFactory.decodeFile(sou...
分类:
移动开发 时间:
2015-04-14 14:38:55
阅读次数:
476
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:
其他好文 时间:
2015-04-14 14:35:10
阅读次数:
121
今天在给安卓项目res-valus-string.xml 中字符串修改的时候,突然eclipse卡住了然后任务管理器关掉之后,重新打开 显示一个错误百度了一下eclipse启动报错,让查看.metadata\.log日志1 !SESSION 2013-09-23 17:28:28.484 -----...
分类:
移动开发 时间:
2015-04-14 14:27:29
阅读次数:
248