热门 es6实现继承

时间:2018-5-29   作者:sunflower   分类: es6   热度:1896°    
时间:2018-5-29   分类: es6    热度:1896  
class User{       constructor(name,age){             this.name=name;              this.age=age;      }     showName(){         alert(this.n...

阅读全文>>

热门 ES6--promise

时间:2018-5-29   作者:sunflower   分类: es6   热度:1706°    
时间:2018-5-29   分类: es6    热度:1706  
//那个请求的快,返回的那个 Promise.race([ $.ajax({url:"js/data.json",dataType:'json'}), $.ajax({url:"js/data2.json",dataType:'json'}) ]).then(data=>{ console.log(data);  //data只返回了data2.json里的东西 },error=>{ alert("失败了"); }); //所有的请求都返回 Promise.all([ $.ajax({url:"js/data.jso...

阅读全文>>

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:覆手为雨    站长: lininn