[removed]void(0) or onclick=“return false” for - which is better?

前端 未结 2 1740
死守一世寂寞
死守一世寂寞 2021-01-04 07:47

There is a javascript-based interface - so I need not to support work without javascript.

I have an

Something

e

2条回答
  •  清酒与你
    2021-01-04 08:35

    Both are poor choices. Presentation shouldn't mix with content. That means no javascript: URIs, and definitely no onclick attributes.

    The way to do it:

    Something
    

提交回复
热议问题