摘要: 1 class ajax{ 2 constructor(){ 3 this.xhr=new XMLHttpRequest(); 4 } 5 get(url,param,back,asyn=true) 6 { 7 this.xhr.open("get",url+'?'+param,asyn); 8 t 阅读全文
posted @ 2020-06-04 11:39 yav 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1 class StrPlay extends String 2 { 3 constructor(str,length){ 4 super(str,length); 5 } 6 // 裁剪一定长度字符串 7 cut(end=80){ 8 try{ 9 return new StrPlay(this. 阅读全文
posted @ 2020-05-07 11:26 yav 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <tit 阅读全文
posted @ 2020-04-27 20:22 yav 阅读(141) 评论(0) 推荐(0) 编辑