手记

angularjs,$http(post)

$http(post)
$http({
method: 'post',
url: '/BSWQI/start_Cal',
dataType: "json",
contentType: "application/json",
data: { app_key: "111", lstData: $scope.relist },
}).then(function successCallback(res) {
// 请求成功执行代码
var result = res.data;
if (result.status == 200) {
var map = new Map();

            $("[classname]").each(function (i) {                $(this).removeAttr("class");                if ($(this).attr("classname") == map.get(result.data)) {                    $(this).attr("class", map.get(result.data));                }            });            $(document).scrollTop($(document).height());//滚动到最下方            toastr.success('评估成功!', '提示信息!');        }        else {            toastr.error(result.msg, "出错了!");        }    })

0人推荐
随时随地看视频
慕课网APP