05 2014 档案

摘要:php ZIP压缩类实例分享Zip($zipfiles, $zipfile); //添加文件列表 PHP的ZIP压缩类: GetFileList($dir);} if ((!empty($dir))&&(!is_array($dir))&&(file_exists($dir))) chdir($d... 阅读全文
posted @ 2014-05-05 19:31 程序员小贝 阅读(495) 评论(0) 推荐(0) 编辑
摘要:PHP图片裁剪函数(图像不变形) 1 && $ratio_h > 1)) {if($ratio_w 1) || ($ratio_w >1 && $ratio_h $ratio_w? $ratio_h : $ratio_w; //取比例大的那个值// 定义一个中间的大图像,该图像的高或宽和目标图像相... 阅读全文
posted @ 2014-05-05 19:28 程序员小贝 阅读(324) 评论(0) 推荐(0) 编辑
摘要:(function (factory) {if (typeof define === 'function' && define.amd) {// AMD. Register as an anonymous module.define(['jquery'], factory);} else {// B... 阅读全文
posted @ 2014-05-05 19:27 程序员小贝 阅读(179) 评论(0) 推荐(0) 编辑
摘要:Zepo是一个JavaScript框架,其特点是兼容现有jQuery API的同时,自身体积十分小;它与jQuery有着类似的API。如果你会jQuery,那么也就会使用Zepto了。$('div') //=> all DIV elements on the page$('#foo') //=> e... 阅读全文
posted @ 2014-05-05 19:26 程序员小贝 阅读(791) 评论(0) 推荐(0) 编辑
摘要:c#实现pdf另存为功能/// /// PDF另存为效果/// /// PDF文件名/// 另存结果文件名public static void PDFSaveAs(String fileName, string saveFileName){ Acrobat.CAcroPDDoc pdfDoc ... 阅读全文
posted @ 2014-05-01 12:02 程序员小贝 阅读(3245) 评论(1) 推荐(0) 编辑
摘要:C#冒泡排序,转载自:http://bbs.it-home.org/forum-net-2.html不多解析自己看去吧using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace... 阅读全文
posted @ 2014-05-01 12:01 程序员小贝 阅读(280) 评论(0) 推荐(0) 编辑