Update custom.md

This commit is contained in:
吴多益 2021-04-01 22:00:14 +08:00 committed by GitHub
parent 8f7e14c928
commit 5101e65d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ order: 26
const button = document.createElement('button');
button.innerText = '点击修改';
button.onclick = event => {
onChange('new');
onChange('new'); // 这个 onChange 方法只有放在表单项中才能调用
event.preventDefault();
};
dom.appendChild(button);