- 博客(3)
- 收藏
- 关注
原创 es6 AJAX封装
class Ajax { constructor(xhr) { xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); this.xhr = xhr; } send(options) { let xhr = this.xhr; let ajax = { type: options.type || 'GET', url: options.url .
2020-09-03 10:06:27
142
原创 JS放大镜(适用于任何像素比)
JS放大镜(适用于任何像素比) HTML: <divstyle="display:flex;width:2000px;height:2000px;justify-content:center;align-items:center;"> <divid="box1"> <divid="box0"></div> </div> <divid="box2"> <d...
2020-09-03 10:02:25
160
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人