First of all, your selector is overkill. I suggest using a class or ID selector like my example below. Once you've corrected your selector, ... ... <看更多>
This piece of code is always pointing to A: var test = $(".user").text(). instead use: $(".rowid").find("td").each(function() { var test = $(this).text(); ... ... <看更多>