Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could I use the absolute path? #35

Closed
catshanshan opened this issue Feb 23, 2022 · 1 comment
Closed

Could I use the absolute path? #35

catshanshan opened this issue Feb 23, 2022 · 1 comment

Comments

@catshanshan
Copy link

catshanshan commented Feb 23, 2022

Hi,the example is
src="static/Build/game.json" width="1000" height="600" unityLoader="static/Build/UnityLoader.js"

and i used the absolute path,such as:

src="D:/projects/test/static/Build/game.json" width="1000" height="600" unityLoader="D:/projects/test/static/Build/UnityLoader.js"

It runned failed,the log is
Uncaught SyntaxError: Unexpected token '<'
Uncaught TypeError: UnityLoader[n] is not a function

@catshanshan
Copy link
Author

catshanshan commented Feb 23, 2022

I know what the reason it was.. the path i really used contains \ ,it runned successfully when i converted all \ to /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants