ajax参数传数组

$.ajax({
            url: '',
            type: 'get',
            traditional: "true",//写这项,参数types可以传一个数组,接口访问成功后,可看到传了多遍types参数
            data: {
                "types":paraTypes,
                "dataproduct":$("select.form-product").val()
            }
        }).done(function(r) {

})

猜你喜欢

转载自blog.csdn.net/liuhaidi87/article/details/81169131
今日推荐