你可以在jquery确认对话框中加粗文字吗?

dot*_*dot 1 html jquery

我有以下jquery代码:

<script type="text/javascript">
        $(document).ready(function() {
        $(".deleteuser").click(function(){ return confirm("Are you sure you want to delete this user?")});
        });
</script>
Run Code Online (Sandbox Code Playgroud)

我希望能够在确认对话框中加粗文本...所以类似于:(伪代码)

$(".deleteuser").click(function(){ return confirm("Are you sure you want to delete this user? <b>Note:</b> It can't be undone!")});
Run Code Online (Sandbox Code Playgroud)

谢谢!

War*_*ent 5

您无法使用标准的javascript弹出窗口执行此操作.

您需要使用自定义库,例如下面之一: