本文基于three.js实现特定容器的粒子特效效果,支持用户传入特定的dom对象以及粒子颜色。 效果图 移入库 <script src="jquery-1.11.3.min.js" type="text/javascript"> </script> <script src="three.min.js ...
分类:
Web程序 时间:
2019-11-17 12:34:42
阅读次数:
112
html5手机端播放音效不卡的方法线下载http://wxserver.knowway.cn/solosea/js/audioEngine.js 这个是性能不错 然后直接播放音效就可以了 audioEngine.playEffect('/solosea1/music/laidian.mp3', fa ...
分类:
移动开发 时间:
2019-11-17 11:01:54
阅读次数:
100
报以下错误,是因为guava版本冲突。 通过分析,排除16.0.1就可以了。 右击选择【Exclude】就可以了; 再看就没有报错了。 ...
1. 安装 前端工程根目录下执行 yarn add d3 ,安装 d3 依赖包。安装的版本 "d3": "^5.7.0" 2. vue 文件中引入 d3 import * as d3 from 'd3' 例如一个基础的 d3.vue 文件内容,包含基本的 <template> <script> <s ...
分类:
其他好文 时间:
2019-11-17 10:45:18
阅读次数:
218
https://blog.csdn.net/zhlh_xt/article/details/52458672 https://www.jianshu.com/p/75cde8a80fd7 https://www.cnblogs.com/Java-Script/p/11089661.html http ...
分类:
系统相关 时间:
2019-11-16 23:37:24
阅读次数:
90
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>title</title> </head> <body> <h2>JSON基本使用</h2> </body> </html> <script> /* 1. ...
分类:
Web程序 时间:
2019-11-16 23:36:11
阅读次数:
85
1.导入插件 layui使用需要导入layui的js和css: <link rel="stylesheet" href="layui/css/layui.css" /> <script src="layui/layui.js"></script> 2.栅格系统 2.1入门demo: <div cla ...
分类:
其他好文 时间:
2019-11-16 23:32:22
阅读次数:
277
一、ES6 什么是:ECMAScript第六个版本 优点:在不改变原理的基础上,简化了js代码 问题:兼容性 包括: 1.let 什么是:专门代替var来声明变量的 为什么:var的问题: 1.声明提前 2.没有块级作用域 何时:只要声明变量都用let 优点: 1.阻止了声明提前 2.添加了块级作用 ...
分类:
其他好文 时间:
2019-11-16 23:11:55
阅读次数:
72
<script> //第一种方法 var a = 2; var b = 3; var c = a; a = b; b = c; console.log(a); console.log(b); //第二种方法 var a = 2; var b = 3; a = a + b; //5 b = a - b ...
分类:
其他好文 时间:
2019-11-16 21:54:45
阅读次数:
52