我好像遇到了问题,在Chrome浏览器上无法使用Mailchimp弹出式订阅功能:
我在Django的index.html页面中添加了以下代码:
我在Django的index.html页面中添加了以下代码:
<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">window.dojoRequire(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us19.list-manage.com","uuid":"4eccd5a19349953c3e023b61d","lid":"9b2e4611ac","uniqueMethods":true}) })
</script>
在Opera、Firefox和IE中似乎正常工作,但在Chrome中出现以下错误:
Uncaught TypeError: window.dojoRequire不是函数。
我错过了什么使其在Chrome中工作?
附加信息:
- Python 3.6.1
- Django 2.1.3