0

我有以下代码:

<script>
    $(function () {
        Command: toastr["success"]("My name is Inigo Montoya. You killed my father. Prepare to die!")
    });
</script>

该框显示,但它是空白的,其中没有任何文字。我该如何解决?我尝试添加以下上述命令:

    toastr.options = {
      "closeButton": true,
      "debug": false,
      "newestOnTop": false,
      "progressBar": false,
      "positionClass": "toast-top-center",
      "preventDuplicates": false,
      "onclick": null,
      "showDuration": "300",
      "hideDuration": "1000",
      "timeOut": "5000",
      "extendedTimeOut": "1000",
      "showEasing": "swing",
      "hideEasing": "linear",
      "showMethod": "fadeIn",
      "hideMethod": "fadeOut"
    }

但它所做的只是使盒子居中。如何让文本出现?

4

1 回答 1

0

您必须删除该Command:块。

于 2015-06-11T18:35:59.180 回答