TanIlak
2 years agoContributor
Calling common function for all the scripts
Hi,
I have two scripts Unit1 and Unit2.
I have imported Unit2 in to Unit1.
When I try to call function webpagereturn which is in unit2. I am getting the error "Cannot read Property ' webpagereturn' of undefined".
Please refer the below Screen shots and help me to resolve this issue.
I need to call a script function in another script file.
Unit1 Screenshot
Unit2 Screenshot
Error Screenshot
Hi Tanlak,
I just add the common js as new item in js.
and use the common js by
var comomon = require("comomon");
must use (" "), not [""]
it works for me.