webservices部署在IIS上,调用程序没有部署,
在IE中能获取到返回值
在firefox中获取不到,返回空
求解脱!!!
3Q
 /// <summary>
    /// Service1 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
    [System.Web.Script.Services.ScriptService]
    public class Service1 : System.Web.Services.WebService
    {        [WebMethod]
        public string HelloWorld()
        {
            return "127.0.0.1";
        }
    }<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $.ajax({
                url: "http://localhost:2190/Service1.asmx/GetData",
                type: "POST",
                processData: false,
                contentType: "application/json",
                dataType: "text",
                success: function(data) {
                    alert(data);
                },
                error: function(ex) {
                    alert(ex);
                }
            })
        })
    </script>