リファレンス getURLParams()

getURLParams()

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

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

実例

リターン

Object: URLパラメータ
Notice any errors or typos? Please let us know. Please feel free to edit src/core/environment.js and open a pull request!

関連するリファレンス