笔试题目笔记
来源:互联网 发布:mac sass 23 怎么安装 编辑:程序博客网 时间:2024/06/03 20:44
第一题:面向对象思想的测评
class Cash{ //code here}实现的功能:const cash1 = new Cash(105);const cash2 = new Cash(66);const cash3 = cash1.add(cash2);const cash4 = Cash.add(cash1,cash2);const cash5 = Cash.add(cash1 + cash2);console.log(`${cash3}`,`${cash3}`,`${cash3}`);
输出结果如下:
1元7角1分 1元7角1分 1元7角1分
第二题,实现一种事件机制
class EventEmitter{ //code here}const eventMitter = new EventEmitter();eventMitter.on("foo",hander)on:添加事件,可以添加多个事件,并且可以多次触发。once:添加一个事件,出发一次之后就不再触发fire:触发这个事件,触发一次之后就不会再触发off:移除一个事件
第三题,主观题:
产品上线了,但是用户体验很受ajax请求影响,现在要求统计所有ajax请求的时间。
因为在做题忘记记下题目,所以题目有点模拟两可,但是还是记下来,求思路。
阅读全文
0 0
- 笔试题目笔记
- 笔试题目笔记
- Android笔试题目学习笔记
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目
- 笔试题目1
- ccf 201609-2 火车购票 (只有90分)
- linux c/c++ 判断是否为中文(不包括中文符号,非正则)
- 操作Git服务接口
- [Leetcode] 367. Valid Perfect Square 解题报告
- Quartz------任务调度框架
- 笔试题目笔记
- HDU 6170 Two strings (DP)
- 面试题!!!!
- Python爬虫从入门到放弃(二十四)之 Scrapy登录知乎
- hdu 1201 18岁生日
- Jquery中的动画
- 微信上传媒体文件 报41005 解决方案 php的巨坑
- activemq相关文章
- JVM垃圾回收机制