01 2017 档案

摘要:elem.requestPointerLock = elem.requestPointerLock || elem.mozRequestPointerLock || elem.webkitRequestPointerLock;elem.requestPointerLock(); 阅读全文
posted @ 2017-01-19 18:58 ~噜啦啦~ 阅读(274) 评论(0) 推荐(0)
摘要:/*! JSZip - A Javascript class for generating and reading zip files<http://stuartk.com/jszip> (c) 2009-2014 Stuart Knightley <stuart [at] stuartk.com> 阅读全文
posted @ 2017-01-19 16:48 ~噜啦啦~ 阅读(1796) 评论(0) 推荐(0)
摘要:GS.ZipAssetLoader = function(audioContext) { this.audioContext = audioContext, this.objLoader = new THREE.OBJLoader, this.mapLoader = new GS.MapLoader 阅读全文
posted @ 2017-01-19 16:35 ~噜啦啦~ 阅读(147) 评论(0) 推荐(0)
摘要:lon = 0,//y旋转角度 lat = 0, onMouseDownLat = 0, phi = 0, theta = 0; if ( isUserInteracting false ) { lon += 0.1; } lat = Math.max( - 85, Math.min( 85, la 阅读全文
posted @ 2017-01-19 15:28 ~噜啦啦~ 阅读(415) 评论(0) 推荐(0)
摘要:<noscript> <article id="noscript" class="error info_panel"> <header class='title_alt text_huge'>Javascript disabled?</header> <p class="error_explanat 阅读全文
posted @ 2017-01-19 10:41 ~噜啦啦~ 阅读(242) 评论(0) 推荐(0)
摘要:设置.js文件默认以jsx的语法打开 在没有进行设置的情况下,每次打开WebStorm的时候打开包含jsx语法的.js文件都会有以下提示: 当然我们点击转换后就可以了,但是每次都会提示,所以还是来一个一劳永逸的方法把它给去掉吧: 然后Apply/OK即可。 设置.js文件中支持react-nativ 阅读全文
posted @ 2017-01-09 17:11 ~噜啦啦~ 阅读(20862) 评论(0) 推荐(0)
摘要:var pixclPatio = 1 / window.devicePixelRatio;document.write('<meta name="viewport" content="width=device-width,initial-scale=' + pixclPatio + ",minimu 阅读全文
posted @ 2017-01-09 14:58 ~噜啦啦~ 阅读(199) 评论(0) 推荐(0)
摘要:var x = data.curPos.left + 60,y = data.curPos.top + 20, x1= data.endPos.left, y1 = data.endPos.top, x2= (x+x1)/2, y2 = y1 - y;//开始计算抛物线函数表达式var a = (( 阅读全文
posted @ 2017-01-04 17:34 ~噜啦啦~ 阅读(385) 评论(0) 推荐(0)
摘要:var style = { position:'absolute', background:'red', width:'2px', height:'2px', color:'#fff', top:x, left:y, 'z-index':1e5}; var s = [];$.each(style,f 阅读全文
posted @ 2017-01-04 15:39 ~噜啦啦~ 阅读(638) 评论(0) 推荐(0)