function animal(){this.eat = function (){ console.log('i will eat');
}}為什么不能用animal.eat()的方法去執行,而是用var一個實例,去執行。不理解其中原理animal.eat(); //eat不是一個函數
函數內的屬性是函數,如何執行它
婷婷同學_
2018-08-10 17:46:30