12,162
社区成员
发帖
与我相关
我的任务
分享
[System.Web.Script.Services.ScriptService]
public string JS(string username, string password)
{
// 接口代码
}
using System.Web;
//下面有1句注释掉的话,要取消注释[System.Web.Script.Services.ScriptService],然后你的js就能访问了
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。
// [System.Web.Script.Services.ScriptService]
public class OperationWS : BaseClass
{