摘要: jQuery插件的开发包括两种:一种是类级别的插件开发,即给jQuery添加新的全局函数,相当于给jQuery类本身添加方法。jQuery的全局函数就是属于jQuery命名空间的函数,另一种是对象级别的插件开发,即给jQuery对象添加方法。下面就两种函数的开发做详细的说明。1、类级别的插件开发类级别的插件开发最直接的理解就是给jQuery类添加类方法,可以理解为添加静态方法。典型的例子就是$.AJAX()这个函数,将函数定义于jQuery的命名空间中。关于类级别的插件开发可以采用如下几种形式进行扩展:1.1 添加一个新的全局函数添加一个全局函数,我们只需如下定义:Java代码 jQuery. 阅读全文
posted @ 2014-01-06 17:06 37℃守望 阅读(278) 评论(0) 推荐(0) 编辑
摘要: //读取文本文件 FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read); //读取字节流 StreamReader sr = new StreamReader(fs); //指定从开头读取文件 sr.BaseStream.Seek(0, SeekOrigin.Begin); string ModelCont = sr.ReadToEnd(); sr.Close(); fs.Close(); return ModelCont; 阅读全文
posted @ 2013-09-18 08:45 37℃守望 阅读(196) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Drawing;using System.Drawing.Imaging;using System.Drawing.Drawing2D;namespace LanServer.BizLogic{ public class Thumbnail { public Thumbnail() { } /// /// 图片无损缩放 /// /... 阅读全文
posted @ 2013-09-17 18:00 37℃守望 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1.读取excel中的内容 string path = Server.MapPath("/ExcelUpload/data_limited.xls"); string sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + path + ";" + "Extended Properties=Excel 8.0;"; //建立EXCEL的连接 OleDbConnection objConn = new O 阅读全文
posted @ 2013-08-06 12:05 37℃守望 阅读(429) 评论(0) 推荐(1) 编辑
摘要: 打开资源管理器:Windows 键+ E 快捷键常见用法F1 显示当前程序或者windows的帮助内容。F2 当你选中一个文件的话,这意味着“重命名”F3 当你在桌面上的时候是打开“查找:所有文件” 对话框F5 刷新F10或ALT 激活当前程序的菜单栏F11当你在打开网页时,是隐藏侧边栏F12在编辑好Excel 或Word文档,可“另存为”Backspace 如果在“另存为”或“打开”对话框中选中了某个文件夹,则打开上一级文件夹Enter 对于许多选定命令代替单击鼠标空格键 如果活动选项是复选框,则选中或清除该复选框箭头键 如果活动选项是一组选项按钮,则选择某个按钮windows键或CTRL+ 阅读全文
posted @ 2013-08-05 13:40 37℃守望 阅读(175) 评论(0) 推荐(0) 编辑
摘要: jquery获取select选择的文本与值获取select :获取select 选中的 text :$("#ddlregtype").find("option:selected").text();获取select选中的 value:$("#ddlregtype ").val();获取select选中的索引:$("#ddlregtype ").get(0).selectedindex;设置select:设置select 选中的索引:$("#ddlregtype ").get(0).selected 阅读全文
posted @ 2013-08-02 10:16 37℃守望 阅读(509) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;//using Aspose.BarCode;using System.Drawing.Imaging;//using ThoughtWorks.QRCode.Codec;//using System.Drawing.Imaging;using ThoughtWorks.QRCode.Codec;using ThoughtWorks.QRCode.Codec.Data;using ThoughtWorks.QRCode.Codec.Util;namespace QrC 阅读全文
posted @ 2013-07-25 10:32 37℃守望 阅读(1381) 评论(2) 推荐(2) 编辑
摘要: StreamReader streamReader = new StreamReader(模板位置及名称, Encoding.GetEncoding("utf-8"));string ManageAspxText = streamReader.ReadToEnd();//加载模板数据ManageAspxText = ManageAspxText.Replace("{需要替换的参数}", 替换值);StreamWriter write = new StreamWriter(文件路径和文件名, false, Encoding.UTF8);write.Flus 阅读全文
posted @ 2013-07-25 10:19 37℃守望 阅读(113) 评论(0) 推荐(0) 编辑