10 2012 档案
摘要:public struct pqItem{public int priority;public string name;}public class PQueue : Queue{public PQueue(): base(){}public override object Dequeue(){object[] items;int min, minindex = 0;items = this.ToArray();min = ((pqItem)items[0]).priority;for (int x = 1; x <= items.GetUpperBound(0); x++)if (((p
阅读全文
摘要:public static void ChangeRollingFileName(){// ログファイルlog4net.ILog iLog = log4net.LogManager.GetLogger("AppLogger");// パスstring strPath = Environment.GetEnvironmentVariables()["USERPROFILE"].ToString() + "\\log\\";string strFilename = strPath + "log.txt";//文件夹生成
阅读全文
摘要:web.config配置如下:<?xml version="1.0" encoding="utf-8" ?><configuration><configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /></configSections><log4net> <!--错误日志配置-->
阅读全文
摘要:document.compatMode(声明是转的,只是为了记下来,以后好用啊。嘿嘿)对于document.compatMode,很多朋友可能都根我一样很少接触,知道他的存在却不清楚他的用途。今天在ext中看到 document.compatMode的使用,感觉这个对于我们开发兼容性的web页面还是很有帮助,我们都知道,IE对盒模型的渲染在 Standards Mode和Quirks Mode是有很大差别的,在Standards Mode下对于盒模型的解释和其他的标准浏览器是一样,但在Quirks Mode模式下则有很大差别,而在不声明Doctype的情况下,IE默认又是Quirks Mode
阅读全文