想将电脑中已有的obj模型加载到three.js中,报错出现
Uncaught DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL
at FileLoader.load (file:///F:/biyesheji/ziliao/three.js:30466:13)
at OBJLoader.load (file:///F:/biyesheji/ziliao/OBJLoader.js:383:11)
at file:///C:/Users/h/Desktop/notepad++.html:72:29
load @ three.js:30466
load @ OBJLoader.js:383
(anonymous) @ notepad++.html:72
新手求解答!在线等!!
你是本地打开的网页吧,加载外部资源需要建立一个服务器才可以