このエラーメッセージに関する原因と対処に関して説明します。
エラーメッセージ(英語):
global var not defined
対処
関連リンク
Why a variable defined global is undefined? - Stack Overflowstackoverflow.com/.../why-a-variable-defined-global-is-...
https://stackoverflow.com/questions/30469755/why-a-variable-defined-global-is-undefined
Surprised that global variable has undefined value ...
https://stackoverflow.com/questions/9085839/surprised-that-global-variable-has-undefined-value-in-ja・・・
Javascript Global Variables Not Working
https://stackoverflow.com/questions/10220678/javascript-global-variables-not-working