LoaderUtils.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc">An object with several loader utility functions.</p>
  12. <h2>Functions</h2>
  13. <h3>[method:String extractUrlBase]( [param:String url] )</h3>
  14. <p>[page:String url] — The url to extract the base url from.</p>
  15. <p>Extract the base from the URL.</p>
  16. <h3>
  17. [method:String resolveURL]( [param:String url], [param:String path] )
  18. </h3>
  19. <p>
  20. [page:String url] — The absolute or relative url resolve. [page:String path] — The base path for relative urls to be resolved against.
  21. </p>
  22. <p>
  23. Resolves relative urls against the given path. Absolute paths, data urls,
  24. and blob urls will be returned as is. Invalid urls will return an empty
  25. string.
  26. </p>
  27. <h2>Source</h2>
  28. <p>
  29. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  30. </p>
  31. </body>
  32. </html>
粤ICP备19079148号