Moodle如何编辑javascript个文件?
Moodle how to edit javascript files?
我正在使用 moodle 开源代码。它在我的机器上是 运行 Ubuntu 16.04 和 apache2,如安装指南中所述。我的问题发生在我更改 javascript 文件时,更改的代码不会在浏览器上显示更新(chrome 开发工具)。即使我删除了文件,浏览器仍会继续向我显示源代码树中的文件代码(刷新并清除浏览器缓存后)。在这个版本的 Moodle 结构中的 javascript 个文件中,我是否遗漏了一个步骤?
提前致谢!
Javascript 已缓存 - 您需要 purge all site caches to see changes. If debugging is off and you are using an AMD module (as all modern Moodle javascript does) or a YUI module (as used by older Moodle code), then you will need to use grunt 缩小 javascript 才能使用。
我正在使用 moodle 开源代码。它在我的机器上是 运行 Ubuntu 16.04 和 apache2,如安装指南中所述。我的问题发生在我更改 javascript 文件时,更改的代码不会在浏览器上显示更新(chrome 开发工具)。即使我删除了文件,浏览器仍会继续向我显示源代码树中的文件代码(刷新并清除浏览器缓存后)。在这个版本的 Moodle 结构中的 javascript 个文件中,我是否遗漏了一个步骤?
提前致谢!
Javascript 已缓存 - 您需要 purge all site caches to see changes. If debugging is off and you are using an AMD module (as all modern Moodle javascript does) or a YUI module (as used by older Moodle code), then you will need to use grunt 缩小 javascript 才能使用。