🎨 整合为刷新页面就清空输入框
This commit is contained in:
1 parent
234e4340c4
commit
cebae03059
1 file changed
+3
-2
@@ -173,8 +173,6 @@ input_note_submit.addEventListener('click', function(event) {
|
|||||||
alert(pid)
|
alert(pid)
|
||||||
addNode(token, pid, title, content).then(result => {
|
addNode(token, pid, title, content).then(result => {
|
||||||
alert(result.message);
|
alert(result.message);
|
||||||
input_note_title.value = "";
|
|
||||||
input_note_content.value = "";
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -198,6 +196,9 @@ function load_notes(main_node) {
|
|||||||
article_title.textContent = "";
|
article_title.textContent = "";
|
||||||
article_content.textContent = "";
|
article_content.textContent = "";
|
||||||
|
|
||||||
|
input_note_title.value = "";
|
||||||
|
input_note_content.value = "";
|
||||||
|
|
||||||
recommend_list.replaceChildren();
|
recommend_list.replaceChildren();
|
||||||
//alert(stack.length)
|
//alert(stack.length)
|
||||||
if (stack.length > 0) { /* 如果不在根节点 */
|
if (stack.length > 0) { /* 如果不在根节点 */
|
||||||
|
|||||||
Reference in new issue
Block a user