微信小程序中如何获取url中的参数,通过onLoad中的options参数,方法如下: Page({ onLoad:function(options){ console.log(options); } })