会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
琥珀君的博客
技术点亮生命,产品温暖人心,探讨CODING真谛,感悟工匠精神。 Q1217356608
首页
新随笔
联系
管理
上一页
1
···
18
19
20
21
22
23
24
25
26
···
34
下一页
2020年8月20日
JS_0031:FastClick 移动平台快速点击
摘要: 1, 为什么要使用FastClick 移动设备上的浏览器默认会在用户点击屏幕大约延迟300毫秒后才会触发点击事件,这是为了检查用户是否在做双击。为了能够立即响应用户的点击事件,才有了FastClick。 项目地址:https://github.com/ftlabs/fastclick 2,使用 $(
阅读全文
posted @ 2020-08-20 10:16 琥珀君
阅读(187)
评论(0)
推荐(0)
2020年8月19日
JS_0030:JS class 类的定义 调用
摘要: 1,class类的定义 class WebAR { /** * 初始化Web AR * @param interval 识别间隔(毫秒) * @param recognizeUrl 识别服务地址 * @param isDebug 是否输入调试信息 * @param token 非必需,使用token
阅读全文
posted @ 2020-08-19 22:27 琥珀君
阅读(1176)
评论(0)
推荐(0)
JS_0029:JS用 XMLHttpRequest 发送http请求
摘要: 1, httpPost(image) { return new Promise((resolve, reject) => { const http = new XMLHttpRequest(); http.onload = () => { try { const msg = JSON.parse(h
阅读全文
posted @ 2020-08-19 18:13 琥珀君
阅读(359)
评论(0)
推荐(0)
JS_0028:JS对象转换为JSON对象 stringify
摘要: 1, var str = {"name":"菜鸟教程", "site":"http://www.runoob.com"} str_pretty1 = JSON.stringify(str)
阅读全文
posted @ 2020-08-19 18:03 琥珀君
阅读(214)
评论(0)
推荐(0)
JS_0027:获取canvas图片的base64编码
摘要: 1, <canvas id="canvas" width="5" height="5"></canvas> 可以用这样的方式获取一个 data-URL var canvas = document.getElementById("canvas"); var dataURL = canvas.toDat
阅读全文
posted @ 2020-08-19 17:41 琥珀君
阅读(888)
评论(0)
推荐(0)
H50056:video视频 playsinline autoplay 不全屏播放
摘要: 1,
阅读全文
posted @ 2020-08-19 17:28 琥珀君
阅读(168)
评论(0)
推荐(0)
JS_0026:JS中find(), findIndex(), filter(), forEach(), some(), every(), map()方法
摘要: JS中find(), findIndex(), filter(), forEach(), some(), every(), map()方法 1. find()与findIndex() find()方法,用于找出第一个符合条件的数组成员。它的参数是一个回调函数,所有数组成员依次执行该回调函数,直到找出
阅读全文
posted @ 2020-08-19 17:07 琥珀君
阅读(250)
评论(0)
推荐(0)
JS_0025:Promise 异步编程
摘要: 1, listCamera(videoDevice) { return new Promise((resolve, reject) => { navigator.mediaDevices.enumerateDevices() .then((devices) => { let index = 1; d
阅读全文
posted @ 2020-08-19 16:49 琥珀君
阅读(171)
评论(0)
推荐(0)
JS_0024:箭头函数()=>{} 的使用方式
摘要: 1, document.querySelector('#openCamera').addEventListener('click', function () { const videoSelect = document.querySelector('#videoDevice'); webAR.lis
阅读全文
posted @ 2020-08-19 15:39 琥珀君
阅读(2468)
评论(0)
推荐(0)
JS_0023:箭头函数()=>{}与function的区别
摘要: 1,
阅读全文
posted @ 2020-08-19 14:51 琥珀君
阅读(601)
评论(0)
推荐(0)
2020年8月18日
H50055:html 页面加载完后再加载js文件 ,url带有时间戳后缀
摘要: 1, <script> (function(){ const now = (new Date()).getTime(); const e = document.createElement('script'); e.setAttribute('src', `asset/js/app.js?t=${no
阅读全文
posted @ 2020-08-18 18:05 琥珀君
阅读(393)
评论(0)
推荐(0)
H50054:html 页面自动刷新 http-equiv属性
摘要: 1, <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>WebAR Demo</title> <meta name="viewport" content="width=device-width, initial
阅读全文
posted @ 2020-08-18 15:56 琥珀君
阅读(141)
评论(0)
推荐(0)
2020年8月17日
ARVR0002: 全景技术学习
该文被密码保护。
阅读全文
posted @ 2020-08-17 15:14 琥珀君
阅读(0)
评论(0)
推荐(0)
Web_0011:阿里云操作技能 跨越设置 子账号权限 新建Bucket并设置权限
该文被密码保护。
阅读全文
posted @ 2020-08-17 12:06 琥珀君
阅读(0)
评论(0)
推荐(0)
2020年8月15日
WebGL_0015:参数值在一定范围内循环变化
摘要: 1, MeterialUv.prototype.upAdoEssLoop = function(e, a, b, s) { if (e) { upAdoEssLoop.upAdoEssFlag ? (e.emissiveIntensity += s) : (e.emissiveIntensity -
阅读全文
posted @ 2020-08-15 19:34 琥珀君
阅读(142)
评论(0)
推荐(0)
H50053:switch 判断范围
摘要: 1, switch(true){ case TXrotY < 10 : console.log("Y10"); break; case TXrotY < 20 : console.log("Y20"); break; default : break; }
阅读全文
posted @ 2020-08-15 19:31 琥珀君
阅读(187)
评论(0)
推荐(0)
2020年8月13日
WebGL_0014:改变相机的刷新颜色
摘要: 1, CameraColorShift.prototype.OnColorShift = function(a) { switch (a) { case 0: targetColor = this.colorTable_1; break; case 1: targetColor = this.col
阅读全文
posted @ 2020-08-13 21:51 琥珀君
阅读(157)
评论(0)
推荐(0)
2020年8月11日
WebGL_0013:JQuery获取json文件 读取数据
摘要: 1, $.get("https://xxx/gjbz_share.json", function(e) { t._path = e[t.name] })
阅读全文
posted @ 2020-08-11 16:33 琥珀君
阅读(227)
评论(0)
推荐(0)
2020年8月10日
WebGL_0012:三维讲解导航模板 Icon方式
摘要: 1, css样式 /* 导航主按钮 模板2 */ .iconElement { width: 50%; /* 高度等于 这个元素的宽度 * li元素的宽度 */ height: 2vw; text-align: center; display: inline-block; position: abs
阅读全文
posted @ 2020-08-10 10:24 琥珀君
阅读(213)
评论(0)
推荐(0)
2020年8月7日
H50052:按钮 禁止 选择 拖拽 右键
摘要: 1, <div class="leftButton" id="leftBtn" ondragstart="return!1" oncontextmenu="return!1" onselectstart="return!1"></div>
阅读全文
posted @ 2020-08-07 15:37 琥珀君
阅读(151)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
25
26
···
34
下一页