-
javaScript发布-订阅模式
发布-订阅模式在可以用JavaScript来实现其通信模式,大概思路如下:1.订阅者在订阅事件的时候实际是在发布者对象的数组中写入要订阅的事件。2.发布者在发布或者叫trigger事件的时候,实际是在发布者中遍历数组中订阅者的事件方法。涉及的是 消息数组的写入和遍历读出过程。3.由于javascript的函数一类对象,可以直接写入数组。最后在实例化对象,通过.emit("对象名",data)发布数据,.on("对象名",callback)接受处理数据等,实现通信。
- 2022-11-28 23:25:03下载
- 积分:1
-
menu-panel
menu手风琴效果 javascript 透明折叠 伸缩
展开(javascript transparent menu accordion effect to start folding telescopic)
- 2011-10-25 09:28:30下载
- 积分:1
-
20套大数据大屏展示echarts模板
说明: 20套大数据大屏展示echarts模板,用来制作大屏数据的的参考来源(20 sets of big data big screen display echarts templates used to make large screen data reference sources)
- 2020-11-09 14:51:28下载
- 积分:1
-
jsgame
5种js小游戏 并返回游戏分数 有俄罗斯方块、贪吃蛇、拼图 等等(js game)
- 2014-01-02 21:17:41下载
- 积分:1
-
横向手风琴
说明: 简单的展示文字图片等内容,将时间线加入其中,不同的展示内容方式,可以手动点击查看不同内容,也可以自动的动态展示文字等内容,可以用作展示信息的模板使用,也可以结合自己的实际情况改写符合自己的小插件,比较实用。(Horizontal display content)
- 2020-06-21 22:40:01下载
- 积分:1
-
conrec.js-master
This is a JavaScript implementation of the CONREC contouring algorithm, which
operates on a grid of z-values.
If no contour-drawing function is specified, it builds a list of contour
vectors that can be accessed via .contourList().
Example:
var data = [[0, 1, 0], [1, 2, 1], [0, 1, 0]];
var c = new Conrec;
c.contour(data, 0, 2, 0, 2, [1, 2, 3], [1, 2, 3], 3, [0, 1, 2]);
// c.contours will now contain vectors in the form of doubly-linked lists.
// c.contourList() will return an array of vectors in the form of arrays.
- 2020-06-19 21:00:01下载
- 积分:1
-
varyQueue
变化列表
varyQueue.js
变化列表
varyQueue.js(vary Queue)
- 2014-08-20 17:28:25下载
- 积分:1
-
FrCapture-master
说明: ## 视频截图工具
可以在预览视频的时候选择一个适合的界面把它截取下来,并存成图片。
## 使用
### 简单使用
主要文件:
```
<script src="poster.js"></script>
```
在视频预览界面调用:
```
poster($('video')[0],function(e){
//console.log(e);
if(e.bool){
//输出文件对象
var blob=e.data;//返回的是blob对象
console.log(blob);
p.src=window.URL.createObjectURL(e.data);//创建一个临时预览路径
}
});
```
### 使用extendvideo.js
`extendvideo.js`与`poster.js`不同的是前者会在引入它的页面里每个`video`标签里增加一个`getPoster()`方法
。
用法:
```
var blob=$('video')[0].getPoster();//返回图片blob对象
```
## 原理
此视频截图工具,采用了canvas绘图函数实现video图片截取,产生base64编码图片信息,再通过转blob。
你的浏览器需要支持`HTML5`(### simple to use
Main documents:
.
<script src= "poster.js" ></script>
.
Call on the video preview interface:
.
Poster ($('video') [0], function (E) {)
//console.log (E);
If (e.bool) {
/ / output file object
Var blob=e.data; / / return is blob
Console.log (BLOB);
P.src=window.URL.createObjectURL (e.data); / / create a temporary preview path
}
});
.
The use of extendvideo.js ###
The difference between `extendvideo.js` and `poster.js` is that the former adds a `getPoster () method to each `video` tag in the page that is introduced to it.
.
Usage:
.
Var blob=$('video') [0].getPoster (BLOB); / / return picture object
.
## principle
This video capture tool uses a canvas drawing function to intercept video pictures, generate Base64 coded picture information, and then transfer blob.
## compatibility
Your browser needs to support `HTML5`)
- 2018-01-16 10:49:42下载
- 积分:1
-
强大的颜色选择控件是一个在WEB页面上实现颜色选择的JavaScript库...
强大的颜色选择控件是一个在WEB页面上实现颜色选择的JavaScript库-dhtmlxColorPicker
- 2023-01-21 00:00:04下载
- 积分:1
-
网上购物系统代码
简单的网络购物系统 功能包括用户的登陆和退出 用户的增删改查 以及管理员用户的登陆和退出 管理员的增删改查 购物车 商品
- 2022-08-17 07:24:51下载
- 积分:1