js 异步请求

 

//标签
    $.ajax({
        url: '/TagManager/MatchList',
        dataType: 'json',
        data: { functionId: $('#FunctionId').val() },
        async: true,
        success: function (data) {
            tag = $("#Tag").select2({
                dropdownParent: $("#selectTag"),
                allowClear: true,
                tags: true,
                multiple: true,
                placeholder: { id: "00000000-0000-0000-0000-000000000000", text: "" },
                data: data
            });
        }
    });

 

posted @ 2023-04-25 10:23  点点酷锁  阅读(23)  评论(1)    收藏  举报