一些 If 语句、一些 html 调查和网络浏览器
我有一个代码可以在此链接中单独检索所有“地名”和所有“地址”:
http://www.yellowpages.ca/search/si-geo/1/sh/Ottawa,+ON
我需要修改我的代码,以便它只检索placename
和 address
(如果
<div class="address""> is not found within <div class="listingDetail"">
class="address"
是该位置的地址,class="listingDetail"
)是父级或容器。一些截图,请查看它们以便更好地理解:
I have a code that retrieves all the "place names" and all the "addresses" separately in this link:
http://www.yellowpages.ca/search/si-geo/1/sh/Ottawa,+ON
I need to modify my code so that it will only retrieve the placename
and address
if
<div class="address""> is not found within <div class="listingDetail"">
class="address"
is the address of the location, class="listingDetail"
is the parent, or container. Some screenshots, please view them for better understanding:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用 JavaScript,请使用:
If you use javascript use: