var reader = new FileReader()
reader.onload = function(callback) {
var md5 = rstr2hex(binl2rstr(binl_md5(reader.result, reader.result.length)))
}
document.getElementById("xxx").value=md5
第二步:获取生成的md5值
var md5value = document.getElementById('xxx').value
第一步生成md5 hash串:var reader = new FileReader()
reader.onload = function(callback) {
var md5 = rstr2hex(binl2rstr(binl_md5(reader.result, reader.result.length)))
}
document.getElementById("xxx").value=md5
第二步:获取生成的md5值
var md5value = document.getElementById('xxx').value