11 2020 档案
摘要:AJAX基础语法: var xhr = new XMLHttpRequest() xhr.open('GET','URL',true) xhr.send() xhr.onreadystatechange == function(){ if(xhr.readyState == 4 && xhr.sta
阅读全文
摘要:首先我们需要明白,__proto__属性是对象独有的,而prototype是函数独有的属性。而在js里万物皆为对象,包括function,所以function也具有__proto__属性。 为了方便理解,我们举一个例子(使用构造函数的方法创建一个数组) 此时可以看到,在a的属性里,有一个名为__pr
阅读全文

浙公网安备 33010602011771号