Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.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
Jquery HubSpot消息库关闭按钮单击_Jquery_Jquery Plugins - Fatal编程技术网

Jquery HubSpot消息库关闭按钮单击

Jquery HubSpot消息库关闭按钮单击,jquery,jquery-plugins,Jquery,Jquery Plugins,我正在使用显示消息 我使用了以下代码: var _notificatioMsg = "Message for display"; Messenger.options = { extraClasses: 'messenger-fixed messenger-on-bottom messenger-on-right', theme: 'air' } Messenger().post({ message: _notificatioMsg, type: "succes

我正在使用显示消息

我使用了以下代码:

var _notificatioMsg = "Message for display";

Messenger.options = {
    extraClasses: 'messenger-fixed messenger-on-bottom messenger-on-right',
    theme: 'air'
}

Messenger().post({
    message: _notificatioMsg,
    type: "success",
    showCloseButton: true,
    hideAfter: false
});
当用户单击关闭按钮时,如何触发某些代码。
我是否需要为关闭按钮编写Jquery
单击事件

我在消息库中找不到任何与关闭按钮事件相关的信息。

如果需要自定义关闭操作,只需在post哈希中添加一个单击事件:

Messenger().post({
信息:_notificationsg,
键入:“成功”,
showCloseButton:正确,
隐藏者:假
活动:{
'click.messenger close':函数(){
//期望的事件
}
}

});如果需要自定义关闭操作,只需在post哈希中添加一个单击事件:

Messenger().post({
信息:_notificationsg,
键入:“成功”,
showCloseButton:正确,
隐藏者:假
活动:{
'click.messenger close':函数(){
//期望的事件
}
}
});