#原型对象 : new 函数生成的对象,被称为原型对象,简称对象;
#函数对象: 将函数作为对象使用时,简称为函数对象;
function Fn () { //Fn函数
}
const fn = new Fn() //Fn构造函数 fn实例对象(简称对象)
console.log(Fn.prototype) //Fn是函数对象
Fn.call() //Fn是函数对象
$("#test") //$ jQuery函数
$.get("/test") //$ jQuery函数对象
#原型对象 : new 函数生成的对象,被称为原型对象,简称对象;
#函数对象: 将函数作为对象使用时,简称为函数对象;
function Fn () { //Fn函数
}
const fn = new Fn() //Fn构造函数 fn实例对象(简称对象)
console.log(Fn.prototype) //Fn是函数对象
Fn.call() //Fn是函数对象
$("#test") //$ jQuery函数
$.get("/test") //$ jQuery函数对象