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qrHu5ZzXTH4NO3CwGWSlTY74kE91zXB5mwWAx1jig+UXYc2w4RkVhy0//lOmVya/PEepuuTTI4+UJwC7qbVlh5zfhj8oTNUXgN0AOc+Q0/WFPl1aw5VV/VrO8FCoB15lFVlpKaQ1Yh+DVU8ke+rt9Th0BCHXe0uZOEmH0nOnH/0onD
2、在npm下载three,
threejs的目录结构了解:
3、一些语法记录
(1)overflow:hidden; //内容被修剪,并且其余部分是不可见的。
(2)vue的ref传值使用
way1:获取本页面的Dom元素
将某个div设置ref="xx",在另一个需要点击得到这个值的地方写一个点击函数click,
可以输出console.log(this.$refs.xx)得到这些值。
修改dom的样式 this.$refs.testDom.style.color="#108ee9"
way2:父子组件之间的Dom元素传递。
子组件里:<div> {{ msg }} </div> 在data里定义msg:“hi,Dom元素”
在父组件里:设置button按钮增加点击事件,点击事件里输出Dom元素。在此之间,先导入子组件标签,并增加ref,这也console.log.xx.msg,才能获取子组件的另一个标签。
way3:父组件调用子组件的方法
大致方法与文字传递差不多,子组件里定义方法。
父组件里导入子组件,并引用子组件的标签<xx ref="hello"/>,就可以在点击事件里使用子组件的方法了。
(3)fun() fun.call() fun.apply()
fun()的this是window,fun.call()与fun.apply()是用户传入的对象obj。
call的参数是(对象,参数1,参数2),apply的形参列表需要以数组的方式传入。