- 博客(15)
- 资源 (5)
- 收藏
- 关注
原创 js前端分页
第一种方法//totalpage 总页数 curpage当前页数function setNavPages(totalpage, curpage) { totalpage = Number(totalpage); curpage = Number(curpage); if (totalpage == 1 || totalpage == 0) return
2016-02-05 14:20:11 719
转载 MVC完成分页
MvcPager 概述MvcPager分页控件是在ASP.NET MVC Web应用程序中实现分页功能的一系列扩展方法,该分页控件的最初的实现方法借鉴了网上流行的部分源代码, 尤其是ScottGu的PagedList类和相关方法,经过站长不断完善和改进后推出的比较成熟而且功能强大的ASP.NET MVC分页解决方案。MvcPager主要功能:实现最基本的ur
2016-02-05 13:58:42 410
原创 按照时间戳中的day 聚合排序
db.publication.group({ keyf: function(doc) { //这个函数从时间戳中得到用于分组的日期key var date = new Date(doc.inputtime); var dateKey = (date.getMonth()+1)+"/"+date.getDate()+"/"+date.getFullY
2014-07-15 10:25:13 1087
原创 开发计算器源代码
package com.example.android_layout;import java.util.ArrayList;import java.util.List;import java.util.StringTokenizer;import android.os.Bundle;import android.app.Activity;import android.view.Vi
2014-03-12 13:34:02 887
原创 mongodb 更新数组
IMongoQuery query = Query.EQ("_id", new ObjectId(bsonAuthor.AuthorAuid)); BsonElement orid = new BsonElement("orid", bsonAuthor.OrganizationAuid); BsonElement orname = new Bson
2014-02-18 09:49:32 730
原创 mongodb linq查询
1.Any() 验证表中是否有文档var result = (from c in collection.AsQueryable() select c) .Any(c => c.X == 1);// orvar result = collection.AsQueryable() .Any(c => c.X == 1);var result =
2013-11-14 14:45:49 1587
原创 MongoDB基本用法
MongoDB数据库基本用法show dbs:显示数据库列表 show collections:显示当前数据库中的集合(类似关系数据库中的表) show users:显示用户use :切换当前数据库,这和MS-SQL里面的意思一样 db.help():显示数据库操作命令,里面有很多的命令 db.foo.help():显示集合操作命令,同样
2013-11-04 14:27:12 917
原创 循环遍历文件夹
ListFiles(new System.IO.DirectoryInfo("D:\\"), ".jpg", "1", "5") public void ListFiles(FileSystemInfo info, string format, string start, string end) { if (info.Exists)
2013-10-31 16:11:10 687
转载 svg中的path
使用path标签时,就像用指令的方式来控制一只画笔,比如:移动画笔到某一坐标位置,画一条线,画一条曲线,完事了抬起画笔,OVER! path支持的指令有: M = moveto(M X,Y) :将画笔移动到指定的坐标位置L = lineto(L X,Y) :画直线到指定的坐标位置H = horizontal lineto(H X):画水平线到指定的X坐标
2013-08-26 09:52:36 1266
原创 冒泡排序
static void Main(string[] args) { Stopwatch sw = new Stopwatch(); sw.Start(); int[] array = { 42, 20, 17, 13, 28, 14, 23, 15 }; #region 冒泡排序
2013-08-13 09:58:27 529
原创 插入排序
static void Main(string[] args) { int[] array = { 42, 20, 17, 13, 28, 14, 23, 15 }; insertSort(array); Console.ReadLine(); } private static
2013-08-13 09:30:11 537
原创 C#中加密和解密
/// /// 加密 /// /// 需要加密的字符串 /// 密钥(8位) /// public static string Encrypt(string strText, string strEncrKey) { byte[] byKey;
2013-07-19 16:19:40 510
android开发的计算器
2014-03-12
excel导入数据库
2012-03-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人