LoaderUtils.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <br>
  21. [page:String path] — The base path for relative urls to be resolved against.
  22. </p>
  23. <p>
  24. Resolves relative urls against the given path. Absolute paths, data urls,
  25. and blob urls will be returned as is. Invalid urls will return an empty
  26. string.
  27. </p>
  28. <h2>Source</h2>
  29. <p>
  30. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  31. </p>
  32. </body>
  33. </html>
粤ICP备19079148号