我正在尝试在我的网站上打开mailchimp弹出窗口(以进行订阅),但出现错误:
未捕获的ReferenceError:在popup.js:2中未定义require
无法加载资源:服务器的状态为404()
那是为什么?我搜索了多个示例,但没有任何帮助。
function showMailingPopUp() {
window.dojoRequire(["mojo/signup-forms/Loader"], function(L) {
L.start({
"baseUrl": "mc.us19.list-manage.com",
"uuid": "201febc0c71c53106162f74bf",
"lid": "d0e587e547"
})
})
document.cookie = "MCPopupClosed=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
document.cookie = "MCPopupSubscribed=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
};
$(function() {
$(".open-popup").on('click', function() {
showMailingPopUp();
});
});
在该代码上方,我的链接将其打开:
<a class="footerlink open-popup" href="javascript:void(0);">Inschrijven voor de nieuwsbrief</a>