📅  最后修改于: 2022-03-11 15:01:47.597000             🧑  作者: Mango
const myModal = document.getElementById('myModal')
const myInput = document.getElementById('myInput')
myModal.addEventListener('shown.mdb.modal', () => {
myInput.focus()
})