FIXBUG:
Uncaught (in promise) TypeError: Cannot set properties of null (setting 'textContent')
at load_notes (dnfs.js:196:28)
This commit is contained in:
1 parent
1da10db8bf
commit
b5e88171f4
1 file changed
+4
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user