We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 获取userToken的JSON字符串 var userTokenString = localStorage.getItem('userToken'); // 如果userToken存在,则解析它 if (userTokenString) { try { // 解析JSON字符串为JavaScript对象 var userToken = JSON.parse(userTokenString); // 假设我们要提取的键是'value' var keyValue = userToken.value; // 打印键的值 console.log(keyValue); } catch (error) { console.error('Error parsing userToken JSON:', error); } } else { console.log('userToken not found'); }
The text was updated successfully, but these errors were encountered:
大家可以在F12 Console中粘贴这段代码直接获取。
Sorry, something went wrong.
这个token配置在哪个位置?
No branches or pull requests
The text was updated successfully, but these errors were encountered: