图像无法显示

时间:2015-10-20 11:02:09

标签: jquery ajax asp.net-mvc-4

显示图片时出现问题?

$.ajax({
    type: 'POST',
    url: _app.ApplicationURL.BaseURL + 'Login/GetLoginUser?userName=' + username,
    dataType: 'json',
    contentType: "application/json",
    success: function (data) {
        $("#lblLogin").css('background-image', 'url(' + data + ')');
    }
});

数据包含图像但未显示。请帮帮我。

0 个答案:

没有答案