You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cần nhớ: Hóa ra bản thân mỗi sự kiện đã là 1 object, được truyền thông qua onChange vào hàm xử lý event là onInputChange(). Muốn biết object event trông như thế nào, thì có thể console.log luôn event thay vì event.target.value. Ví dụ đây là kết quả của console.log(event).
Lưu ý: Có thể gọi là eventObject hay bất kỳ tên gì chứ không cần bắt buộc chỉ là event, tất tật đều trỏ đến object chứa thông tin về sự kiện hết.
The text was updated successfully, but these errors were encountered:
Cần nhớ: Hóa ra bản thân mỗi sự kiện đã là 1 object, được truyền thông qua
onChange
vào hàm xử lý event làonInputChange()
. Muốn biết object event trông như thế nào, thì có thể console.log luôn event thay vì event.target.value. Ví dụ đây là kết quả củaconsole.log(event)
.Lưu ý: Có thể gọi là
eventObject
hay bất kỳ tên gì chứ không cần bắt buộc chỉ làevent
, tất tật đều trỏ đến object chứa thông tin về sự kiện hết.The text was updated successfully, but these errors were encountered: