题解 | #单向绑定#
单向绑定
https://www.nowcoder.com/practice/728b83e2b9b948dbababcc4a494eefc3
const id_input = document.getElementById('input') const id_span = document.getElementById('span') id_input.onchange = function(e){ const value = this.value id_span.textContent = value }