I've created a new Foundation 5 project through bash, with foundation new my-project
.(我已经通过bash创建了一个新的Foundation 5项目,其中包括了foundation new my-project
。)
When I open the index.html file in Chrome an Uncaught TypeError: a.indexOf is not a function
error is shown in the console, originating in jquery.min.js:4
.(当我在Chrome中打开index.html文件时,控制台中显示Uncaught TypeError: a.indexOf is not a function
错误,起源于jquery.min.js:4
。)
I created the project following the steps on the foundation site, but I can't seem to get rid of this error.(我按照基础站点上的步骤创建了项目,但似乎无法摆脱此错误。) Foundation and jQuery look like they are included and linked up correctly in the index.html file, and the linked app.js file is including $(document).foundation();
(Foundation和jQuery看起来像它们都包含在index.html文件中并正确链接,而链接的app.js文件包含$(document).foundation();
)
Does anyone know what is causing this error?(有谁知道是什么原因导致此错误?) and what a solution might be?(有什么解决方案?)
ask by FreddieE translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…