2017 7 3 pm

if (window.localStorage){//将用户键入的数据保存到localStorage对象的属性中
localStorage.loan_amout=amount;
}
window.onload=function(){
if(window.localStorage && localStorage.loan_amount){
document.getElementById("amount").value=localStorage.loan_amount;
}
}
HTML中不区分大小写
js区分大小写

你可能感兴趣的:(2017 7 3 pm)