坏人未变坏 2017-03-08 01:40 采纳率: 46.2%
浏览 925

请问如何在notiry的提示框中加入按钮?

 $.notify({
         title: '确定要删除此模板吗!',
          message: ""
          },{
            element: 'body',
            type: 'warning',
            placement: {
               from: "top",
               align: "center"
            },
            emplate: '<div data-noify="container" class="col-xs-11 col-sm-3 alert alert-{0}" role="alert">' +
                      '<button type="button" aria-hidden="true" class="close" data-notify="dismiss">×</button>' +
                      '<span data-notify="icon"></span> ' +
                      '<span data-notify="title">{1}</span> ' +
                      '<span data-notify="message">{2}</span>' +
                      '<div class="progress" data-notify="progressbar">' +
                      '<div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 10%;">' +
                      '<button type="button" class="btn btn-warning">确定</button>'+
                      '</div>' +
                      '</div>' +
                      '</div>'
                    });

我这样写的,但是没有效果。
谢谢!

  • 写回答

1条回答 默认 最新

  • threenewbee 2017-03-08 23:03
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用