6.
@老虎会游泳,
好吧。那你登录页面那个切换可以输入中文是怎么实现的?求JS。
7.
@姜辰,
// 密码框变文本框
document.querySelectorAll('input[type=password]').forEach(x => { x.type = 'text'; x.dataset.hu60IsPwd = true; });
// 再变回密码框
document.querySelectorAll('input[data-hu60-is-pwd=true]').forEach(x => { x.type = 'password'; x.dataset.hu60IsPwd = undefined; });