0
值这是一个后续我刚才的问题:Extracting an href's text from an html document提取从HTML HREF的属性
我怎样才能在seekVideo(number)
多少?例如:
<a href="#" class="transcriptLink" onclick="seekVideo(2000); return false;"
我想要“2000”。
我曾尝试:
NSArray *elements = [xpathParser search:@"//div[@id='transcriptText']/div/p/number(substring-before(substring-after(@onclick, '('), ')'))"];
但是,这是不对的。我怎样才能做到这一点?
如果有人可以使用Kirill Polishchuk在此Web提供的代码框架(https://stackoverflow.com/questions/6723244/iphone-how-to-select-this-label),那就太棒了。
可能重复? ](http://stackoverflow.com/questions/7231132/iphone-how-to-get-this-label) – Mat