如何使用 jQuery 获取 HTML 元素的 name 属性?
你应该使用attr('name')像这样
attr('name')
$('#yourid').attr('name')
你应该使用 id 选择器,如果你使用类选择器,你会遇到问题,因为返回了一个集合