what's the difference between and

后端 未结 3 1370
野性不改
野性不改 2020-12-03 15:35

what is the difference between

and

One uses

3条回答
  •  無奈伤痛
    2020-12-03 15:52

    The value of an event handler attribute is a sequence of Javascript statements, not an expression.

    It isn't assigning a function value to the property; it's a piece of code to execute at that event.
    Leaving out the parentheses, results in an expression statement that has no effect.

提交回复
热议问题