从ajax响应jsp

时间:2018-09-20 21:30:28

标签: ajax jsp

JSP Ajax 如何使用request.getParameter从ajax获取值响应

function country_change()
        { var country = $(".country").val();
            $.ajax({
                type: "POST",
                url: "state.jsp",
                data: "country_id=" + country,
                cache: false,
                success: function (response)
                {
                    $(".state").html(response);
                }
            });

0 个答案:

没有答案