Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/53.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap Bootbox JS-提醒使用;“关闭”;_Twitter Bootstrap_Bootbox - Fatal编程技术网

Twitter bootstrap Bootbox JS-提醒使用;“关闭”;

Twitter bootstrap Bootbox JS-提醒使用;“关闭”;,twitter-bootstrap,bootbox,Twitter Bootstrap,Bootbox,我们使用Bootboxjs.com项目进行引导 我们需要更改出现的bootbox.Alert('dddddd')框的文本。文档中没有显示如何更改 有人知道如何更改警报按钮的文本吗?只需使用一个对话框: bootbox.dialog({ message: "I am a custom dialog", buttons: { success: { label: "Close", } } }) 您想更改“确定/取消”按钮吗?是的,现在它是“确定”按钮,他们

我们使用Bootboxjs.com项目进行引导

我们需要更改出现的bootbox.Alert('dddddd')框的文本。文档中没有显示如何更改

有人知道如何更改警报按钮的文本吗?

只需使用一个对话框:

bootbox.dialog({
  message: "I am a custom dialog",
  buttons: {
     success: {
      label: "Close",
     }
  }
})

您想更改“确定/取消”按钮吗?是的,现在它是“确定”按钮,他们希望它“关闭”