如何用jquery获取<input id="test" name="test" type="text"/>中输入的值?

1 如何用jquery获取<input id="test" name="test" type="text"/>中输入的值?
2 $(" #test ").val()
3 $(" input[ name='test' ] ").val()
4 $(" input[ type='text' ] ").val()
5 $(" input[ type='text' ]").attr("value")

 

posted @ 2019-10-20 15:35  谢世林  阅读(586)  评论(0)    收藏  举报