//下拉框选择
    $("select").change(function () {
       var is_show = $("option:selected").val();
       console.log(is_show);
        var listurl = '/Index/Goods/listgoods';
        if (is_show==''){
            console.log('空')
           window.location.href=listurl;
       } else{
           console.log('非空');
           var listurl = listurl+'/is_show/'+is_show;
           window.location.href=listurl;
       }
    })

 

posted on 2018-09-28 09:46  SoftBlue  阅读(735)  评论(0编辑  收藏  举报