В vanilla JS, setAttribute() может вам помочь: var div = document.getElementById('div'); console.log(div); // Modify the attribute div.
確定! 回上一頁