Should I put a Semicolon (;) when I use onclick=“”

后端 未结 4 1271
深忆病人
深忆病人 2020-12-14 16:00

Should I put a Semicolon (;) when I use onclick=\"\"?

Click

or:

4条回答
  •  抹茶落季
    2020-12-14 16:26

    It is good practice to include it, since if you decide to add other statements after the call, it is clear and easy to do so. However, the code will run either way.

提交回复
热议问题