- 博客(5)
- 收藏
- 关注
原创 pcm转wav,解决浏览器无法直接播放pcm格式的音频数据
1. 创建PCM2WAV类const stream = require('stream')const waveheader = require('waveheader')class PCM2WAV { constructor (options) { let pcm2wav = new stream.Transform() options = options || {...
2019-11-19 14:00:24 1172 3
原创 js毫秒转换成年月日
/*js由毫秒数得到年月日使用: (new Date(parseInt(data)*1000)).Format("yyyy-MM-dd hh:mm:ss.S")*/Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(),...
2018-04-03 14:48:40 2414
原创 Javascript面向对象编程(OOP)
1.属性、方法和原型对象 function People(name, sex, deposit) { this.name = name; this.sex = sex; var deposit = deposit; //私有属性deposit(存款) this.consume = functio...
2018-02-12 12:12:16 194
原创 MongoDB的安装步骤
1.环境与资源系统环境:win10 x 64位操作系统。MongoDB版本:mongodb-win32-x86_64-enterprise-windows-64-3.6.2-signed.msi。下载地址:https://pan.baidu.com/s/1snr5c65。也可以到官网下载对应版本:https://www.mongodb.com/download-center?filter=ente...
2018-02-08 18:25:18 506
原创 javascript 对象继承
继承的定义:创建一个或多个类的专门版本类的方式称为继承。javascript只支持单继承,创建的专门版本的类通常叫做子类,另外的类称为父类。在现代浏览器中你可以使用Object.create实现继承。举个例子,定义一个父类Person类,然后定义Student类作为Person类的子类,之后重新定义sayHello()方法并添加了sayGoodbye()方法。//定义Perso
2018-01-30 22:01:30 235
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人