<head>
<script src="https://embed.sellpass.io/embed.js"></script>
</head>
该按钮仅在放置在index.html中的react之外时才起作用,在React组件中不起作用,什么也不会发生。这很不幸,因为我以前的提供商工作得很好。
<body>
<button
data-sellpass-product-path="path"
data-sellpass-domain="url">
Purchase
</button>
我尝试了各种技巧,但没有一个奏效,所以我寻求帮助。 更新: 当我刷新该组件所在的页面时,它仅在 React 组件中起作用。
嘿,你能向我解释一下你是如何做到这一点的吗?