在HTML中导入所需要的js包。 <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>O3D Example</title> <mce:script type="text/javascript" src="o3djs/base.js" mce_src="o3djs/base.js"></mce:script> <mce:script type="text/javascript"><!-- //o3d js // --></mce:script> </head> <body> <h1>O3D Example</h1> <!-- Start of O3D plugin --> <div id="o3d" style="width: 600px; height: 600px;"></div> <!-- End of O3D plugin --> </body> </html> 一个复杂的3D应用包含场景、摄像机、3D几何体、灯管和材质等。 o3djs.require('o3djs.util');