Z
Zhichun Pu
Hi guys,
I can't seem to get anything returned from functions.
If I use the <script src = ... > command, nothing works. But if I
define the functions locally within the file, then it works.
Something simple:
function abc() { return 99; }
If I tried to access this function by placing it inside a .js file,
and then including it, it returns "undefined". Everything else works
except for returned values...
If I define this function locally, it returns correctly the value of
99.
What is going on?? This is so weird.
Zhichun
I can't seem to get anything returned from functions.
If I use the <script src = ... > command, nothing works. But if I
define the functions locally within the file, then it works.
Something simple:
function abc() { return 99; }
If I tried to access this function by placing it inside a .js file,
and then including it, it returns "undefined". Everything else works
except for returned values...
If I define this function locally, it returns correctly the value of
99.
What is going on?? This is so weird.
Zhichun