在浩瀚的宇宙中,哪个星球上会有‘Hello World’的问候?
- 内容介绍
- 文章标签
- 相关推荐
本文共计98个文字,预计阅读时间需要1分钟。
csharpusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;
namespace MvcHelloWorld.Controllers{ public class HelloController : Controller { // GET: Hello public ActionResult Index() { return View(); } }}
gistfile1.txtusing System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MvcHelloWorld.Controllers { public class HelloController : Controller { // GET: Hello public ActionResult Index() { return View(); } public string Welcome(string name,int times=1) { if (name == null) return "null"; string result = ""; result += "this is the Welcome action method..."; result += "name:" + name + ""; result += "times:" + times; return result; } } }
本文共计98个文字,预计阅读时间需要1分钟。
csharpusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;
namespace MvcHelloWorld.Controllers{ public class HelloController : Controller { // GET: Hello public ActionResult Index() { return View(); } }}
gistfile1.txtusing System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MvcHelloWorld.Controllers { public class HelloController : Controller { // GET: Hello public ActionResult Index() { return View(); } public string Welcome(string name,int times=1) { if (name == null) return "null"; string result = ""; result += "this is the Welcome action method..."; result += "name:" + name + ""; result += "times:" + times; return result; } } }

