リファレンス getURLParams()

getURLParams()

現在の URLパラメータObjectとして返します。

例えば、https://p5js.org?year=2014&month=May&day=15というURLでホストされているスケッチでgetURLParams()を呼び出すと、 { year: 2014, month: 'May', day: 15 }が返されます。

実例

リターン

Object: URLパラメータ
This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!

関連するリファレンス