参考 getURLParams()

getURLParams()

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

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

"

示例

Returns

对象: URL 参数
Notice any errors or typos? Please let us know. Please feel free to edit src/core/environment.js and open a pull request!

相关参考