I am working on a Node.JS project in Webstorm, where there is a main EJS file with some javascript that is supposed to call a function in another javascript file. When the HTML renders, the call does not get made, to the function in the other javascript file. I know the path reference to the javascript file is correct because webstorm automatically changes it if I move the file in the navigation bar.
Here's the calling code in the main EJS file.
$(document).ready(function () {
$("button").click(function () {
remoteScriptTest("Hi");
});
});
Here's the code in the function being called.
function remoteScriptTest(message){
window.alert(message);
}
I realize this may not be sufficient information to solve the problem, so please ask for whatever that may be helpful.
解决方案
try to remove public from the include path.. I had the same problem.