![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 53
lps2020
这个作者很懒,什么都没留下…
展开
-
typescript基础篇
/** * 类 * 类的继承和抽象类 */ // abstract class Animal { // name:string; // constructor(name:string) { // this.name=name; // } // run():void{}; // seep():void{ // alert(`${this.name}睡觉睡的很香`) // } // abstract eat():any; // } // class Ca原创 2021-10-14 16:29:11 · 1193 阅读 · 0 评论 -
前端生成base64图片
function $getBase64Image(img) { var canvas = document.createElement("canvas"); canvas.width = img.width; canvas.height = img.height; var ctx = canvas.getContext("2d"); ctx.drawImage(img, 0, 0, img.width, img.height); var ext = img.原创 2021-08-12 14:09:41 · 354 阅读 · 0 评论