リファレンス getURLPath()

getURLPath()

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

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

実例

リターン

String[]: パスコンポーネント。
Notice any errors or typos? Please let us know. Please feel free to edit src/core/environment.js and open a pull request!

関連するリファレンス