使用 Debut 的 slate 创建弹出式购物车

问题描述

我正在尝试使用 slate 的 _hideCartPopup_showCartPopup 来响应购物车锚标记上的 onclick。我正在使用最新的 debut 主题

尝试过这个,但我遇到了错误..

 var siteheadercar = document.querySelector('.site-header__cart');
 siteheadercar.addEventListener('click',function() {
     theme.Product._showCartPopup();
 });

Uncaught TypeError: theme.Product._showCartPopup is not a function

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)