摘要:
GET 请求 // GET 请求 // 创建XMLHTTPRequest对象 const xhr = new XMLHttpRequest(); // 设置请求的url参数,参数一是请求的类型,参数二是请求的url,可以带参数 xhr.open("get", `url地址?id=${id}`); / 阅读全文
posted @ 2021-10-01 13:02
青柠i
阅读(44)
评论(0)
推荐(0)
摘要:
1. 原型链继承 // 原型链继承 function Parent(){ this.name = ["原型链继承"]; } // 原型上挂载方法 Parent.prototype.getName = function(){ console.log(this.name); } function Chi 阅读全文
posted @ 2021-10-01 11:13
青柠i
阅读(82)
评论(0)
推荐(0)

浙公网安备 33010602011771号