H5打开支付宝小程序

H5打开支付宝小程序

	 window.location.href=`https://ulink.alipay.com/?scheme=`+ encodeURIComponent("alipays://platformapi/startapp?appId=xxxxxxxx&page=/pages/index/index");

window.location.href=`https://ds.alipay.com/?scheme=`+ encodeURIComponent("alipays://platformapi/startapp?appId=xxxxxxxxxxxx&page=/pages/index/index");

appid  小程序的appid
page  小程序路径

你可能感兴趣的:(小程序,微信小程序,javascript)