Zurb foundation 6 , what-input.min.js 文件功能
Zurb foundation 6 , what-input.min.js file functionality
我想知道 what-input.min.js
包含在 Zurbs foundation-6 框架中的相关性,在 js/vendor
目录中,这是因为在 运行站点,... js/vendor/jquery.min.map
文件,有关联吗?
您不需要用于将缩小文件映射回原始文件的 .map 文件。它可以从 jquery 的站点下载。在检查器设置中可以忽略源映射,这在您不打算调试缩小的 javascript 文件
时有意义
它与源映射文件404无关但是什么-input.min.js是一个JS库"to watch for mouse, keyboard and touch events"
他们有一个包含更多文档的 github 页面:https://github.com/ten1seven/what-input
和一个演示:
https://ten1seven.github.io/what-input/
"Tab, click or tap the links and form controls to see how What Input allows them to be styled differently"
在将 JointsWP 与 Foundation 6 框架结合使用时,我在每个站点上都遇到了完全相同的问题。我终于明白了。我关闭了 css 源映射,但仍然收到错误消息。事实证明它没有骗我,js 文件确实不存在,它试图从以下位置加载它:
/vendor/what-input/what-input.min.js
但它位于同一目录中的 dist 文件夹下。因此,如果您找到加载 what-input.min.js 的 enqueue-scripts.php 文件,您可以将目录路径修复为:
/vendor/what-input/dist/what-input.min.js
不再是 404!
我想知道 what-input.min.js
包含在 Zurbs foundation-6 框架中的相关性,在 js/vendor
目录中,这是因为在 运行站点,... js/vendor/jquery.min.map
文件,有关联吗?
您不需要用于将缩小文件映射回原始文件的 .map 文件。它可以从 jquery 的站点下载。在检查器设置中可以忽略源映射,这在您不打算调试缩小的 javascript 文件
时有意义它与源映射文件404无关但是什么-input.min.js是一个JS库"to watch for mouse, keyboard and touch events"
他们有一个包含更多文档的 github 页面:https://github.com/ten1seven/what-input
和一个演示: https://ten1seven.github.io/what-input/ "Tab, click or tap the links and form controls to see how What Input allows them to be styled differently"
在将 JointsWP 与 Foundation 6 框架结合使用时,我在每个站点上都遇到了完全相同的问题。我终于明白了。我关闭了 css 源映射,但仍然收到错误消息。事实证明它没有骗我,js 文件确实不存在,它试图从以下位置加载它:
/vendor/what-input/what-input.min.js
但它位于同一目录中的 dist 文件夹下。因此,如果您找到加载 what-input.min.js 的 enqueue-scripts.php 文件,您可以将目录路径修复为:
/vendor/what-input/dist/what-input.min.js
不再是 404!