C#获取本机IP地址 using System.Net; using System.Net.Sockets; string name = Dns.GetHostName(); va…
public static string GetMd5Hash(string pathName) { string strResult = ""; string…
这是一个C#实现的屏幕抓取程序,可以抓取整个屏幕保存为指定格式的图片,并且保存当前控制台缓存到文本 using System; using System.Collections.G…
public static string GetSHA1Hash(string pathName) { string strResult = ""; strin…
// The initial C# code for the WMI query was generated by WMI Code Generator, Version 5.00…
using System; using System.Collections.Generic; using System.Linq; using System.Text; usin…
以 前在做网站的时候,经常会遇到当前页的分类高亮显示,以便让用户了解当前处于哪个页面。之前一直是在每个不同页面写方法。工程量大,也不便于修改。一直在 想有什么简便的方法实现。后来在…
一个购物车JS脚本,很简单,直接上代码,shoppingCart.js: utils = { setParam : function (name,value){ localStor…
图片一出来,过5秒钟,开始闪动,然后停止。 var inter={}; var i=0; $(document).ready(function(){ $("a"…
/** 数字金额大写转换(可以处理整数,小数,负数) */ function upDigit(n) { var fraction = ['角', '分']; var digit =…
贪吃蛇js代码分享 <!doctype html> <html> <head> <meta charset="utf-8&quo…
cookie指某些网站为了辨别用户身份、进行session跟踪而储存在用户本地终端上的数据(通常经过加密) 在网站客户端中保存数据,可以减少服务器的压力 // Cookie操作对象…