数据库的配置:
连接字符串:
server=潘尚\\SQLEXPRESS;database=db_test;Trusted_Connection=true
连接代码:
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq...
分类:
数据库 时间:
2014-08-01 10:55:21
阅读次数:
236
jquery.validate 学习笔记(验证form表单工具)在网上找了一些资料,很多对表单验证的工具需要指明表单的控件的name 或者 id,就需要自己写JS代码来指明哪些控件需要添加校验,如果页面很多,自己JS的工作量还是比较大的,还不如自己写代码去校验,因此我选择了jquery.valida...
分类:
Web程序 时间:
2014-08-01 10:48:51
阅读次数:
302
jquery实现ajax可以调用几种方法我经常用的是$get(url,data,callback,type)方法其中url是异步请求的页面(可以是.ashx文件),data是参数,callback是回调函数,而type是返回数据的类型.type有xml,html,json,text等.首先,页面引用...
分类:
Web程序 时间:
2014-08-01 10:40:41
阅读次数:
265
二分查找又称折半查找,优点是比较次数少,查找速度快,平均性能好;其缺点是要求待查表为有序表,且插入删除困难。
假设其数组长度为n,其算法复杂度为o(log(n))
代码:
#include
using namespace std;
bool BinarySearch(int data[],int start, int end, int number){
while(start...
分类:
其他好文 时间:
2014-08-01 09:14:51
阅读次数:
228
.aspx:Html代码无标题页姓名: .aspx.csC#代码usingSystem;usingSystem.Collections;usingSystem.Configuration;usingSystem.Data;usingSystem.Web;usingSystem.Web.Securit...
分类:
Web程序 时间:
2014-08-01 09:12:01
阅读次数:
338
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:
其他好文 时间:
2014-08-01 09:10:21
阅读次数:
233
$("#ajax").on("click",{btn:$(‘#ajax‘)},function(evdata){
$.get("pull",{id:13},function(data){
console.info(data);
evdata.data.btn.click();
},"json");
});@RequestMapping(value={"pull"},produces={"application/json"},method={RequestMethod.GET})
pub..
分类:
其他好文 时间:
2014-08-01 07:02:01
阅读次数:
268
1 2 3 4 5 6 7 8 9 10 Zero11 12 13 14 15 16 ---------------------------------------------17 18 ${data...
分类:
Web程序 时间:
2014-08-01 04:45:35
阅读次数:
262
Uri uri = data.getData();String[] proj = { MediaStore.Images.Media.DATA };Cursor actualimagecursor = managedQuery(uri,proj,null,null,null);int actual_...
分类:
移动开发 时间:
2014-08-01 04:45:11
阅读次数:
291
#!r6rs
( import ( rnrs base ( 6 ) )
( rnrs io simple ( 6 ) ) )
( define ( deriv exp var )
( define ( variable? x )
( symbol? x ) )
( define ( =number? exp num )...
分类:
其他好文 时间:
2014-08-01 02:28:20
阅读次数:
210