Skip to content

内容検索の処理です#11

Open
TTTTk84 wants to merge 3 commits into
masterfrom
#4-serchword
Open

内容検索の処理です#11
TTTTk84 wants to merge 3 commits into
masterfrom
#4-serchword

Conversation

@TTTTk84
Copy link
Copy Markdown
Collaborator

@TTTTk84 TTTTk84 commented Nov 9, 2019

No description provided.

Comment thread Todo/src/serchword.js Outdated
Comment on lines +4 to +9
let value_input = document.getElementById("value_input");

//todoリストに入っている分ループ
for (let i = 0; i < taskNumber; i++) {
//class_name[1]に内容 [2]にタグ名
let class_name = document.getElementsByClassName('"' + i + '"');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

letは再代入する時のみ使用するようにしましょう
constにしておくことで意図せぬ代入を防ぐことができるのでより安全です。
var,let,constの違いを理解した上で使えるととても良いです

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

了解です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants