Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brandonxiang/example-mocha
- Owner: brandonxiang
- License: mit
- Created: 2017-02-09T09:53:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T03:56:42.000Z (almost 8 years ago)
- Last Synced: 2024-11-11T04:47:45.089Z (about 2 months ago)
- Topics: demo, javascript, mocha, unittest
- Language: JavaScript
- Size: 169 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)超出范围的正整数相加