问题描述
我需要在单击按钮时显示Mailchimp弹出窗口。.通过以下代码实现了
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true,isDebug: false"></script>
<script type="text/javascript">
function showMailingPopUp() {
window.dojoRequire(["mojo/signup-forms/Loader"],!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/70bd57f505209997979320931/42ce744851246d266a1877xxx.js"));
document.cookie = 'MC_PLUMS_LOGIN=;path=/;expires=Thu,01 Jan 1970 00:00:00 UTC;';
document.cookie = 'MC_GAUID=;path=/;expires=Thu,01 Jan 1970 00:00:00 UTC;';
document.cookie = 'MC_USER_PROFILE=;path=/;expires=Thu,01 Jan 1970 00:00:00 UTC;';
document.cookie = '_abck=;path=/;expires=Thu,01 Jan 1970 00:00:00 UTC;';
};
jQuery(function() {
jQuery(document).on('click',"#openPop",function(event) {
event.preventDefault();
showMailingPopUp();
});
但是我的问题是,它只打开一次。如果我第二次单击,它似乎没有打开。因此,我尝试更改Cookie的时间设置,似乎不起作用
我知道我在查找Cookie时出错。请任何人帮助我哪些cookie需要更改或删除
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)