Object Expected error, javascript, jQuery
问题 I'm getting an object expected error in a javascript file. In this case does it mean that the jQuery files aren't included properly? The line that is causing the error is... $(function () { The error in the browser is... Message: Object expected Line: 6 Char: 1 Code: 0 回答1: It's possible - if the files weren't included, then the $ variable would indeed not be an object where one was expected. "Object expected" errors usually mean that you have a variable that is null / undefined and then try