リファレンス getURLPath()

getURLPath()

現在の URL パスをStringArrayとして返します。

例えば、https://example.com/sketchbookというURLでホストされているスケッチを考えてみましょう。getURLPath()を呼び出すと ['sketchbook']が返されます。https://example.com/sketchbook/mondayというURLでホストされているスケッチの場合、getURLPath()['sketchbook', 'monday']を返します。

実例

リターン

String[]: パスコンポーネント。
This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!

関連するリファレンス