摘要:
//定义一个请求news的方法 function getNews(url) { //创建一个promise对象 let promise = new Promise((resolve, reject) => { //初始化promise状态为pending //启动异步任务 let re... 阅读全文
摘要:
1.JS数据类型 1.1 + -运算逻辑 var x="The answer is "+42; // The answer is 42 var y=42+"is the answer" ;// 42 is the answer BUT var z="37"-7; //30 var s="is the 阅读全文