这样传输ids内的数据到后台,好像不行,帮我瞅瞅


$(function () {
            $("#Exportb").click(function () {
                let ids = []
                // 获取到选中的复选框的用户id
$('input[name="ck[]"]:checked').each((i, r) => {
                    ids.push($(r).val())
                })
                console.log(ids)    
                $.ajax({
                    type: "post",
                    dataType: "json",
                    async: false, // 异步提交
                    url: "IHttpHandler/Handler_Export.ashx",
                    traditional: true,
                    data: { "ids": ids },
                    success: function (data) {
                        if (data.success == "true") {
                        window.location.href = data.Url;
                    }
                    else {
                        layer.alert(data.msg, { icon: 5, skin: 'layer-ext-moon' });
                    }
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    layer.alert(XMLHttpRequest.status, { icon: 5, skin: 'layer-ext-moon' });
                }
            });             
        });           
    });

```

data:JSON.parse({ "ids": ids })

ids.join(',')