02 2014 档案
摘要:2014-02-21var p=function(){}(); //表示定义一个变量P,变量后面的函数为返回值var p = function(){return 'abc';}();alert(typeof p); //string
阅读全文
摘要:class Program { static void Main(string[] args) { string s = "zzq2"; string temp = string.Empty; Ma...
阅读全文
摘要:最近一直在看DDD开发 规约似乎用得很普遍。 但是还是理解不了。所以记录下学习的进度。~规约(Specification)模式目的:查询语句和查询条件的分离写了一个关于规约的模拟小程序 class Program { static void Main(string[] args)...
阅读全文
摘要:如何將ViewData裡包含的Html輸出(MVC)默認輸入ViewData裡的Htm系統會自動把標籤轉換而達不到預覽的效果, 我們如果要呈現解析後的HTML則要調用@MvcHtmlString.Create(ViewData["Content"].ToString())
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ServiceL...
阅读全文
摘要:DataTable dt = new DataTable(); dt.Columns.Add("UserName", typeof(string)); dt.Columns.Add("Age", typeof(int)); dt.R...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Reflection;using System.Text;using System.Threading.Tasks;namespace Conso...
阅读全文

浙公网安备 33010602011771号