10 2011 档案
摘要:////使用方法//$(文本域选择器).insertContent("插入的内容");//$(文本域选择器).insertContent("插入的内容",数值); //根据数值选中插入文本内容两边的边界, 数值: 0是表示插入文字全部选择,-1表示插入文字两边各少选中一个字符。////在光标位置插入内容, 并选中(function($) { $.fn.extend({ inse...
阅读全文
摘要:/* input 和 textarea 最大文字限定插件 * 修改版, 一个中文表示1一个字, 一个英文半个字; * TextLimit - jQuery plugin for counting and limiting characters for input and textarea fields * * pass '-1' as speed if you don't want the ch...
阅读全文
摘要:inc的好处: 1. 长程序分段 2. 在inc中依旧可以使用原文件的方法, 特别在MVC中取数据用ViewData, 推荐在部分功能做好的时候分片, 使主文件精简 【what's inc file】 .inc 文件顾名思义是include file的意思。 实际上,文件的后缀对于文件包含是无所谓 你可以包含一个asp文件,也可以包含txt文。 一般我们使用inc作...
阅读全文
摘要:SQL的小常识, 备忘之用, 慢慢补充. 1. @@rowcount: 获取受影响行数 例: update SNS_TopicData set TopicCount=TopicCount+1 where Topic ='1'if @@rowcount>0begin print '成功'endelsebegin print '失败'end2.存储过程的调用--申明返回变量...
阅读全文
摘要:JS 时间格式化函数 //时间格式化函数Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1, //month "d+": this.getDate(), //day "h+": this.getHours(), //hour "m+": this.getMinutes(), ...
阅读全文
摘要:以下方法在即时窗口中不能使用, 请各位大大们调试的时候注意了! 可以直接写在方法中输出来看看哦! public static string GetMethodInfo(){ string str = ""; //取得当前方法命名空间 str += "命名空间名:"+System.Reflection.MethodBase.GetCurrentMethod().DeclaringTyp...
阅读全文
摘要:DLL反编译, 有些不良同学会用到哦!强烈介意学习的时候使用, 别拿来偷代码, 别人写代码也辛苦的!如果没有混淆加密的话 可以用Reflector Disassembly就可以了 http://www.red-gate.com/products/reflector/
阅读全文
摘要:前台插件的介绍 jquery.json 插件{jQuery插件} 主要方法: $.toJSON(json对象): 将json对象转化为字符串 $.evalJSON(str): 将字符串转化为json对象 插件下载: jquery.json-2.3.min.js 后台工具的介绍 json.net 主要方法: 将对象转为json字符串: User u = new User(...
阅读全文