thymeleaf i18n添加报价

时间:2018-07-26 16:00:45

标签: javascript thymeleaf

我用百里香

bootbox.confirm({
     title: /*[[#{delete}]]*/,
     message: /*[[#{delete.car}]]*/,
     buttons: {
         cancel: {
             label: '<i class="fa fa-times"></i> [[#{no}]]'
         },
         confirm: {
             label: '<i class="fa fa-check"></i> [[#{yes}]]'
         }
     },
     callback: function (result) {

        ...
     }
 });

显示按钮的值时,带有引号。...

buttons: {
      cancel: {
          label: '<i class="fa fa-times"></i> "Non"'
      },
      confirm: {
          label: '<i class="fa fa-check"></i> "Oui"'
      }
   },

我搜索以获得

buttons: {
  cancel: {
      label: '<i class="fa fa-times"></i> Non'
  },
  confirm: {
      label: '<i class="fa fa-check"></i> Oui'
  }
 },

0 个答案:

没有答案