再会,
如何用 打印HTML标签的文本WWW::Mechanize::Firefox?
我试过了:
print $_->text, '/n' for $mech->selector('td.dataCell');
print $_->text(), '/n' for $mech->selector('td.dataCell');
print $_->{text}, '/n' for $mech->selector('td.dataCell');
print $_->content, '/n' for $mech->selector('td.dataCell');
请记住,我不想要{innerhtml},但这确实有效。
print $_->{text}, '/n' for $mech->selector('td.dataCell');
上面的行确实有效,但输出只是多个/n