我正在寻求使用Wix页面作为登录页面。我需要将电子邮件地址作为URL参数传递给页面,并将其显示在页面上。如何将url参数传递到页面中,以及如何在代码中获取参数?有没有人能给我指一指,或者举个例子?
发布于 2021-03-03 16:04:23
在像这样的参数中发送电子邮件
然后使用Wix Location Query获取参数的值。
import wixLocation from 'wix-location';
$w.onReady(function () {
let query = wixLocation.query['email'];
let email = decodeURIComponent(query); //decode uri encoded values in readable format
console.log(email); //this is your email
});https://stackoverflow.com/questions/66448250
复制相似问题