Uncaught (in promise) TypeError: Cannot set properties of null (setting 'textContent')
    at load_notes (dnfs.js:196:28)
This commit is contained in:
shufeng2012 committed 2026-07-23 21:38:46 +08:00
1 parent 1da10db8bf
commit b5e88171f4
1 file changed
+4 -2
+4 -2
View File
@@ -193,8 +193,10 @@ delete_note.addEventListener('click', (event) => {
})
function load_notes(main_node) {
article_title.textContent = "";
article_content.textContent = "";
/* 这个不能设置为空的 */
//article_title.textContent = "";
//article_content.textContent = "";
if (input_note_title.value != "" || input_note_content.value != "") {
if (confirm("是否放弃当前输入的内容?") == true) {