网页部分
<div id='container'></div>
<div class='bts'></div>
<div class='rotate'></div>
container 存放场景图片,bts多个场景切换,rotate感应切换; 需要引入three.min.js、orienter.js、main.js
页面初始化
varvillaId ="demo";
varname_arr =["view1","view2"];
varload_url ='/images/panorama';
$(document).ready(function() {
init();
animate();
})