参考 getURLParams()

getURLParams()

返回当前 URL 参数, 数据类型是 Object

例如:在托管在URL上的绘图中调用getURLParams(), URL 为:https://p5js.org?year=2014&month=May&day=15,返回 { year: "2014, month: 'May', day: 15 }

"

示例

返回值

对象: URL 参数
This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!

相关参考