jQuery(#id).val() vs. getElementById(#id).value

前端 未结 7 940
眼角桃花
眼角桃花 2020-12-01 16:02

I been searching but I can only find articles talking about one or the other. Which one is better?

I\'m making a small web app where performance is not a big concern

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 16:14

    If you're using

    提交评论

提交回复
热议问题