函数也是变量 有这个认识 js重写自己的函数就顺理成章
function fn(){ console.log("native"); fn = function(){ console.log("override"); } } fn(); // native fn(); // override