【文件属性】:
文件名称:Javascript_confirm-password
文件大小:3.79MB
文件格式:ZIP
更新时间:2021-05-12 08:24:33
HTML
JavaScript
确认密码
在这里进行测试->
我带了一个搜索算法,可以快速确认密码
// JavaScript
function ConfirmPassword ( ) {
id_confirm = document . getElementById ( "confirm" ) . value
id_senha = document . getElementById ( "senha" ) . value
let senha = [ { passe : id_senha } ]
var confirm = senha . filter ( function ( value ) {
return value . passe . includes ( id_confirm )
} )
confirm .