摘要: 1 function Mother(lastName){ 2 this.lastName = lastName 3 } 4 5 var son = new Mother('Da') 1.创建一个新对象:son 2.新对象会执行[[prototype]]连接:son.__proto__ = Mothe 阅读全文
posted @ 2021-12-23 21:44 凉之光ca 阅读(217) 评论(0) 推荐(0)
摘要: 1.两数之和 1 /** 2 * @param {number[]} nums 3 * @param {number} target 4 * @return {number[]} 5 */ 6 var twoSum = function(nums, target) { 7 for(let i=0;i 阅读全文
posted @ 2021-12-23 12:50 凉之光ca 阅读(52) 评论(0) 推荐(0)