摘要: Rose 阅读全文
posted @ 2015-01-29 15:38 翘首以望 阅读(354) 评论(0) 推荐(0) 编辑
摘要: /** 系统中JS的扩展函数***/// 清除两边的空格String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, '');};// 合并多个空白为一个空白String.prototype.ResetBl... 阅读全文
posted @ 2014-12-03 09:53 翘首以望 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 对于遍历数组的元素,js和jquery都有类似的方法,js用的是forEach而jquery用的是each,简单举例;var arr = new Array(["b", 2, "a", 4],["c",3,"d",6]);arr.forEach(function(item){ alert(... 阅读全文
posted @ 2014-11-28 14:45 翘首以望 阅读(15350) 评论(0) 推荐(0) 编辑
摘要: public static string key = "esgdkcmf";DES加密 string encryptKeyStr = textBox1.Text; byte[] keyBytes = System.Text.Encoding.UTF8.Ge... 阅读全文
posted @ 2014-10-30 16:17 翘首以望 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 1.session方便,但容易丢失;2.application全局;3.cookie简单,但是可能不支持,容易被伪造;4.input type="hide"隐藏域,简单,但容易被伪造5.url参数简单,显示与地址栏,但是长度有限;6.数据库稳定,安全,但性能较弱;表单提交传递页面代码 表单提交... 阅读全文
posted @ 2014-10-30 16:07 翘首以望 阅读(1311) 评论(0) 推荐(0) 编辑
摘要: public static string Key { get { return key; } set { key =... 阅读全文
posted @ 2014-10-21 18:20 翘首以望 阅读(177) 评论(0) 推荐(0) 编辑
摘要: XML格式如下 001.jpg 001.aspx 10 gucas01 002.jpg 002.aspx 20 gucas02 003.jpg 003.aspx 30 gucas03 004.j... 阅读全文
posted @ 2014-10-13 16:41 翘首以望 阅读(348) 评论(0) 推荐(0) 编辑
摘要: //TransmitFile实现下载 protected void Button1_Click(object sender, EventArgs e) { Response.ContentType = "application/x-zip-compressed... 阅读全文
posted @ 2014-09-12 10:30 翘首以望 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 在实际开发中,在数据库表设计中,我们往往习惯于用一个Int类型的State字段去表示数据的状态,这个字段很方便去表示这条数据的状态,但是又不愿意去建一张这个State字段的外键表去解释状态。(这一类型表状态的字段可能还会有很多,这里只是举个例)我们一般会把这个State字段当成一个约定,去在项目中应... 阅读全文
posted @ 2014-09-09 16:30 翘首以望 阅读(336) 评论(0) 推荐(0) 编辑