直接setvalue 不行的; 保存后就消失了; 可以使用此方法: const input = document.querySelector('#wtbusername') function setInputValue(input, value){ if(!input.disabled){ input.disabled = true } input.value = value } setInputValue(input, 'hello'
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有