Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brandonxiang/example-mocha

Several examples for mocha
https://github.com/brandonxiang/example-mocha

demo javascript mocha unittest

Last synced: 12 days ago
JSON representation

Several examples for mocha

Awesome Lists containing this project

README

        

# example-mocha
Several examples for mocha

- [demo1](src/demo1.js) 给某个dom中创建一个div掩盖在它的上面,使得原来的dom没法被点击,透明度默认0.2
- [demo2](src/demo2.js) 一篇文章,查找出高频词汇,找到最高频的,并统计出它的个数
- [demo3](src/demo3.js) ul 动态绑定1000个li,插入body
- [demo4](src/demo4.md) 检验出是qq.com域名
- [demo5](src/demo5.js) class person设置公有属性name私有属性age公有函数setAge() class teacher继承于person,具有私有属性sudentcount公有方法setstudentcount
- 事件函数function on(elem,type,handler),hander的this绑定的是elem。
- crsf原理和防范措施
- [demo8](src/demo8.js)超出范围的正整数相加