reactjs - aframe-htmlembed-component 在反应中不起作用
问题描述
<head>
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="http://supereggbert.github.io/aframe-htmlembed-component/dist/build.js"></script>
<head/>
索引.html
<a-scene>
<a-entity htmlembed>
<div id="clickme" onclick="console.log('do something')">Click Me</div>
</a-entity>
</a-scene>
应用程序.js
任何人都可以建议我如何使这项工作做出反应
解决方案
推荐阅读
- arrays - 为什么我的数组在 React 中接收它的函数处为空?
- python - 使用一个查询跨熊猫数据框中的两列执行数学计算?
- php - 从文本文件中复制行并为 php 中的每一行创建新文件
- c# - 发布表单时如何保护隐藏的 ID
- revit-api - 从 REVIT Api 导入 gbxml
- python-3.x - 如何加快循环超过 4GB 制表符分隔的文本文件
- java - 如何找到 AWS EC2 客户端的角色?
- c - Clion 无法导入 C 文件(Makefile 未更新)
- c++ - 如何在 OOP 中正确使用 ifstream?
- autodesk-forge - Forge ARKit:无法在 Unity 中加载模型