Javascript SweetAlert html选项不工作

Javascript SweetAlert html选项不工作,javascript,angularjs,sweetalert,Javascript,Angularjs,Sweetalert,带html的Sweet alert选项不起作用。你们能解释我如何解决这个问题吗?或者我想将模板显式绑定到Sweet alert swal({ title: "Are you sure?", text: '<b>Hiiii</b>' , type: "info", showCancelButton: true, confirmButtonColor: "#F44336",

带html的Sweet alert选项不起作用。你们能解释我如何解决这个问题吗?或者我想将模板显式绑定到Sweet alert

    swal({
        title: "Are you sure?",
        text: '<b>Hiiii</b>' ,
        type: "info",
        showCancelButton: true,
        confirmButtonColor: "#F44336",
        confirmButtonText: "Yes, accept it!",
        closeOnConfirm: true
        html:true
    }, function() {
        $scope.onComment(record);
    });
swal({
标题:“你确定吗?”,
文本:“Hiiii”,
输入:“信息”,
showCancelButton:true,
confirmButtonColor:#F44336“,
confirmButtonText:“是的,接受它!”,
closeOnConfirm:true
html:对
},函数(){
$scope.onComment(记录);
});
你们能帮我解决这个甜蜜警报问题吗?

正如医生所说:

html is no longer used. Instead use the content object.
()

尝试:


请添加一些代码,到目前为止您尝试了什么?正如@lin所说,请提供代码。您可以使用AngularJS SweetAlert包装swal({title:“您确定吗?”,文本:'Hiiii',键入:“info”,showCancelButton:true,confirButtonColor:“#F44336”,confirButtonCext:“是的,接受它!”,closeOnConfirm:true html:true},function(){$scope.onComment(record);});我已通过bowerdouble检查您包含的路径(dist文件夹?)安装了swall。swall运行正常,但“使用html true”选项不起作用。实际上,我想在swall中显示动态html表。您使用的是内联模板还是url?
swal({
  content: "input",
});