摘要:
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 阅读全文
摘要:
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. 阅读全文
摘要:
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 阅读全文