clock.cs
来自「《ajax编程技术与实例》的所有的案例」· CS 代码 · 共 28 行
CS
28 行
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
/// <summary>
/// Summary description for Clock
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Clock : System.Web.Services.WebService {
public Clock () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string getTime() {
return DateTime.Now.ToString();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?