C#
文章平均质量分 74
曾国藩
虽然现在我是个菜鸟但是我终究会变成大神的
展开
-
读取URl并将其源码保存
protected void Page_Load(object sender, EventArgs e) { //调用方法 // this.DownUrltoFile("http://zhgkj.com", "html/zhgkj.htm", "utf-8"); // Response.Write(Request.UrlRefer转载 2014-05-18 21:08:28 · 358 阅读 · 0 评论 -
图片缩放旋转
// 缩放图片 function imgToSize(oBool) { var oImg = document.getElementById(''); if(oBool==0) { var h=oImg.height; var w=oImg.width; oImg.height=h/2; oImg.widt转载 2014-07-14 17:18:22 · 459 阅读 · 0 评论 -
压缩图片的类
using System; using System.IO; using System.Linq; using System.Text; using System.Collections.Generic; namespace Gasgoo.Framework30.Common.Utility.ImageThumbnail { public class Thumbnai原创 2014-06-23 16:37:59 · 389 阅读 · 0 评论 -
JS格式化银行卡号
JS格式化银行卡号 $("#AccountNum").keydown(function(e) { if(!isNaN(this.value.replace(/[ ]/g,""))){ this.value =this.value.replace(/\s/g,'').replace(/(\d{4})(?=\d)/g,"$1 ");//四位数字翻译 2014-07-17 22:01:21 · 3306 阅读 · 0 评论 -
格式化银行卡号
//格式化银行卡号 protected string getBankCode(string CardCode) { string rtn = ""; if (!string.IsNullOrEmpty(CardCode)) { for (int i = 0; i原创 2014-09-16 11:19:01 · 600 阅读 · 0 评论