摘要: 参考文献: 1.https://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/keywords/enum 2.https://docs.microsoft.com/zh-cn/dotnet/csharp/programming-g 阅读全文
posted @ 2019-06-14 15:59 <--青青子衿--> 阅读(371) 评论(0) 推荐(0) 编辑
摘要: switch (【表达式】)//表达式类型必须是:sbyte、byte、short、ushort、int、uint、long、ulong、char、string、枚举; { case 【常量表达式1】:【语句块】 break;//【常量表达式】的值必须是与【表达式】的类型兼容的常量; case 【常 阅读全文
posted @ 2019-06-14 15:40 <--青青子衿--> 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: 注意点: 由于const变量的值在编译期间就已经将其存入metadata中, 程序中使用常量其实已经直接将其替换成常量值了(可以通过 IL 查看),所以在 client-> lib这样引用关系的应用中,如果要修改存在于lib中的常量,单单重新编译发布 lib是不会对 client起作用的, 需要重发 阅读全文
posted @ 2019-06-14 15:22 <--青青子衿--> 阅读(92) 评论(0) 推荐(0) 编辑
// /**/ // 在页脚Html代码 引入 // function btn_donateClick() { var DivPopup = document.getElementById('Div_popup'); var DivMasklayer = document.getElementById('div_masklayer'); DivMasklayer.style.display = 'block'; DivPopup.style.display = 'block'; var h = Div_popup.clientHeight; with (Div_popup.style) { marginTop = -h / 2 + 'px'; } } function MasklayerClick() { var masklayer = document.getElementById('div_masklayer'); var divImg = document.getElementById("Div_popup"); masklayer.style.display = "none"; divImg.style.display = "none"; } setTimeout( function () { document.getElementById('div_masklayer').onclick = MasklayerClick; document.getElementById('btn_donate').onclick = btn_donateClick; var a_gzw = document.getElementById("guanzhuwo"); a_gzw.href = "javascript:void(0);"; $("#guanzhuwo").attr("onclick","follow('33513f9f-ba13-e011-ac81-842b2b196315');"); }, 900);