How to Use External Javascript Functions from within the Main.js in an App
2022년 11월 23일에 게시됨
Hello All,
I am using local storage to save data in an app. However, there is a chance it will exceed the maximum allowed size. For this reason, I have implemented a third party compression/decompression algorithm. This is in a .js file.
My problem is that I don't know how to reference the external .js file from the main.js file. For testing purposes, I have copied the third party code, wholesale, into the main.js -- but this is not an ideal situation. I would like to reference the external file so that I can use the relevant functions, and keep the third party code separate.
Can anyone advise?
Thanks,
SGL.
0
4
댓글 0개
댓글을 남기려면 로그인하세요.