综合上述,在a中调用js函数最适当的方法推荐使用:
a href="javascript:void(0);" onclick="js_method()"
a href="javascript:;" onclick="js_method()"
a href="#" onclick="js_method();return false;"

相关文章:

  • 2021-06-01
  • 2021-11-17
  • 2022-12-23
  • 2021-08-28
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-02-09
  • 2021-09-14
  • 2022-02-27
相关资源
相似解决方案