javascript - 有没有办法在 nextjs 应用程序中使用 heatmap.js 作为组件?
问题描述
由于我不能将其用作组件,因此我必须将组件设置为硬模式
var heatmapInstance = h337.create({
// only container is required, the rest will be defaults
container: document.getElementById('heatmap')
});
但我想要一种方法来拥有更多类似的东西:
<Heatmap data:{}></Heatmap>
解决方案
推荐阅读
- mysql - MySQL连接表和派生表的性能比较
- javascript - Object.keys 复制数组 es6 中的对象
- javascript - 在 React 中的按键上应用按钮“活动”样式
- angular - 键值角5打字稿的数据结构
- php - 在 Laravel 集合中用逗号连接字符串
- java - 如何通过正确的翻译放大鼠标位置
- javascript - jquery ui可拖动位置相对不起作用
- rest - 其余内容未出现在 Xamarin.forms 示例中
- android - 共享元素过渡,包括 CollapsingToolbarLayout
- javascript - 为什么我不能在 JavaScript 中使用 "x = $("p").offset; Top = x().top"?