mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
Update custom.md
This commit is contained in:
parent
8f7e14c928
commit
5101e65d0a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user