...
An Error will be thrown if there are any problems loading the module, such as a file not found or syntax error.
ExampleExamples
Code Block | ||||
---|---|---|---|---|
| ||||
function increment() { // x and y must be declared in the parent scope where pjs.import() is used x += 1; y += 2; } exports.increment = increment; |
...