解决方案 »

  1.   

    using System;
    using System.Web;
    using System.Collections;
    using System.Web.Services;
    using System.Web.Services.Protocols;
    using System.Web.Script.Services;
    using KL.cBmap;
    using System.Collections.Generic;
    using System.Linq;/// <summary>
    ///BmapService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    //若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。 
    [System.Web.Script.Services.ScriptService]
      

  2.   

    $.post("/GoogleMapWebService.asmx/fWeb",{形参1:参数1,形参2:参数2... 没有参数写NULL},function(data){
    //要进行的操作},"text");"text":为返回值类型。