JS异步传参数,乱码问题,传参数之前,要去处理

前台:

   $('#txtzone').bind('blur', function () {

        if ($('#txtzone').val() != "") {

        $.ajax({
            //异步请求开始
            url: '../../ashx/isExistzone.ashx?zone_name=' + encodeURI(encodeURI($('#txtzone').val())),
                dataType: 'json',
                cache: false,
                success: function (s) {
                    if (s.content == "0") {
                        $.messager.alert('提示', '该小区不存在,请添加', 'question', function () { location.href="../../system/zone/edit.aspx" });
                    }


                }

            });
        }
        else {
            // alert($('#txtzone').val());
        }


    });

后台接受:

  string strzone =HttpUtility.UrlDecode(PageRequest.GetQueryString("zone_name"),Encoding.UTF8);

原文地址:https://www.cnblogs.com/it888/p/3116494.html