日期:2014-05-17  浏览次数:20676 次

spring拦截器没拦截下来
$.ajax({
        type : 'post',
url : "/seller/updateTwoDimensionalCode.html",
dataType : "jsonp",
jsonp : "callback",
async : "false",



上面的跳转为什么会没被@RequestMapping("/seller/updateTwoDimensionalCode")拦截下来?设置的是.html拦截的,是我哪里写错了吗?看了蛮久了,看不出问题啊,蛋蛋忧伤
------解决方案--------------------
不知道你怎么搞,你直接调用 。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html>    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
        <title>
            xxx
        </title>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
        </script>
        <script type="text/javascript">        

  $.getJSON("http://www.geonames.org/postalCodeLookupJSON?postalcode=10504&country=US&callback=?", function(json) {  
            for (var e in json.postalcodes[0]) {                       
                            document.write(e + "--->" + json.postalcodes[0][e]+"<br/>");                            
                        }
        }); 
        </script>
    </head>
    
    <body>
      
    </body>

</html>