-
自己写的递归方法复制文件夹里面的内容(从源文件(里面可以有多个层次的子文件夹)到一个文件夹)
摘要:private void CopyFile(string source, string destination) { bool flag = true; if (!Directory.Exists(destination) && flag == true) { ...
阅读全文
-
递归写的复制文件夹及其下的内容(原样复制)
摘要:private void CopyDirection(string source, string destination) { if (!Directory.Exists(destination)) { Directory.CreateDirectory(destination); }...
阅读全文
-
JS取得URL中的参数值
-
自己写的将文件从多个文件合并到一个文件夹的小方法
摘要:using System;using System.Collections.Generic;using System.Text;using System.IO;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { Program ...
阅读全文
-
使用 Hashtable 集合(一)
摘要:http://www.cnblogs.com/protorock/archive/2006/02/06/326174.html
阅读全文
-
MessageBox.Show用法
摘要:DialogResult result = MessageBox.Show("数据库清理后不可再恢复,确实要清空数据库吗?", "删除确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly); if...
阅读全文
-
System.IO.File类和System.IO.FileInfo类
摘要:1.bool exist = System.IO.Directory.Exists(cfg.XmlProductPath+@"\mobile\"); //判断文件夹是否存在2.Directory.CreateDirectory(cfg.XmlProductPath + @"\mobile\"); //创建mobile文件夹3.string[] dirs = null; dirs = Dire...
阅读全文
-
Math.floor和Math.ceil函数
摘要:public class CeilAndFloor {public static void main(String[] args) {/*这两个宝贝函数的主要任务是截掉小数以后的位数.区别是: floor总是把数字变得越来越小,而ceil总是把数字变大。其实名字可以理解floor是地板,ceil是天花板。*/System.out.println("==============Math.floor(...
阅读全文
-
Document对象
-
javascript小技巧
摘要:事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey 事件返回值 event....
阅读全文
-
JavaScript的学习
摘要:【1、普通的弹出窗口】 是对一些版本低的浏览器起作用,在这些老浏览器中不会将标签中的代码作为文本显示 出来。用单引号和双引号都可以,只是不要混用。 【2、经过设置后的弹出窗口】 参数解释: js脚本结束 【3、用函数控制弹出窗口】 ..... 这里定义了一个函数openwin(),怎么调用呢? 方法一: 浏览器读页面时弹出窗口; 方法二: 浏览器离开页面时弹出窗口; 方法三:用...
阅读全文
|