No browser is involved here.
Writing this syntax:
var head= document.getElementsByTagName('head')[0];
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= 'helper.js';
head.appendChild(script);
var head= document.getElementsByTagName('head')[0];
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= 'helper.js';
head.appendChild(script);
To copy to clipboard, switch view to plain text mode
gives me:
ReferenceError: document is not defined
ReferenceError: document is not defined
To copy to clipboard, switch view to plain text mode
What's the way out?
Added after 27 minutes:
Found the solution here: http://qt-project.org/doc/qt-5/qtqml...t-imports.html
Thanks to koopajah from stackoverflow.
Bookmarks