起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2769|回复: 0

[未处理] 记住密码功能如何实现?

[复制链接]

135

主题

387

帖子

775

积分

高级会员

Rank: 4

积分
775
QQ
发表于 2019-10-9 15:22:23 | 显示全部楼层 |阅读模式
如题,参考了网易案例的这段代码,不是很明白,写一段这样的代码就可以了吗?请老师指导一下,谢谢
justep.Shell.userType = justep.Bind.observable();
                        justep.Shell.userName = justep.Bind.observable();
                        var userLocal = (localStorage.getItem("userUUID") && JSON.parse(localStorage.getItem("userUUID"))) || null;
                        if (userLocal) {
                                justep.Shell.userName.set(userLocal.name || "UNKNOWN");
                                justep.Shell.userType.set(userLocal.accountType || "UNKNOWN");
                        } else {

                        }

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-4-28 12:08 , Processed in 0.063999 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表