首页 > 解决方案 > 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

任何人都可以建议我如何使这项工作做出反应

标签: reactjs

解决方案


推荐阅读