![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端js
漠涯(o?o)
在校大学生-正在实习,会在今后的工作中不断分享的我心得和资料
展开
-
jQuery 的遍历数组倒序解决问题
var arr = [1,2,12,13,4,5,6,7,8,9,10,11,12,13,14] function b(){ $.each(arr,function(iteam,index){ $("#nr").prepend( '<div class="TH_tagname_out">'+'<div class="TH_tagname" >'+index+ '</div><div class="TH_name_v.原创 2022-03-22 10:55:30 · 1848 阅读 · 0 评论 -
threejs 有关直线拐弯时候的圆角
//作为拐弯的弧度 var R=20//添加一些点作为开头和拐点var arr =[ new THREE.Vector3(-143, 140, 390), new THREE.Vector3(-143, 140, 190), new THREE.Vector3(10, 140, 190), new THREE.Vector3(10,140,0), new THREE.Vector3(-10,140,18),] var curve = new THREE.CurvePath.原创 2022-03-22 10:31:33 · 1182 阅读 · 0 评论 -
备忘 threejs 动画库 tween.js有关移动,物体直接消失问题
//移动调用这个函数,传入需要移动的模型和移动距离 function moveup(mesh,num) { var pos = mesh.getWorldPosition() var tween = new TWEEN.Tween(pos) tween.to( { x: pos.x=num, }, 3000 ) tween.onUpdate(.原创 2022-03-22 10:22:49 · 844 阅读 · 0 评论 -
前端组件整理
0. 前端自动化前端构建工具 gulp – The streaming build system grunt – the JavaScript Task Runner 前端模块管理器 Bower – A package manager for the web Browserify Component Duo RequireJS Sea.js css预处理器 Less – Less is More , Than CSS Sass – Syntactically转载 2021-12-29 12:01:02 · 111 阅读 · 0 评论 -
threejs的灯光(备忘)
点光源 半球光 平行光 环境光源 聚光灯1、平行光 使用没有方向,只在物体表面 添加什么颜色,物体就反射什么颜色原创 2021-12-15 15:00:02 · 1762 阅读 · 0 评论 -
定时器(主要用于双击事件,不执行单击事件)setTimeout
主要是定时器对单双击事件的使用原创 2021-12-07 09:41:51 · 188 阅读 · 0 评论