我一直在阅读其他人的方法,但我无法连接这里的点,我需要从锚点标签中提取href:“/agente/listing/details/5828063”。(下面代码的第二行)
源页面代码段如下所示:
<div class="col-md-3" style="margin: 12px auto;">
<a title="Abrir imóvel numa nova tab" data-bind="attr:{ href: '/agente/listing/details/' + ID }" target="_blank"
href="/agente/listing/details/5828063">
<span class="glyphicon glyphicon-new-window"></span>
</a>
<div class="discount-container loaded">
<div data-bind="if: CampaingDescription"></div>
<span data-bind="click: $parent.ShowListingDetails, attr:{ id: 'bkmimg' + ID }" style="cursor:pointer"
id="bkmimg5828063">
<!-- ko if: ListingPictureUrl != '' && ListingPictureUrl != null -->
<img class="picture" data-bind="attr:{ src:ListingPictureUrl, 'data-original': ListingPictureUrl}"
onerror="this.src='/agente/images/default-listing.png'"
src="https://remaxpt-media.azurewebsites.net/images/listings/12204/122041118-203/L_07e3e17f83064ad2a228f234bf57b32a.jpg?w=160&h=160"
data-original="https://remaxpt-media.azurewebsites.net/images/listings/12204/122041118-203/L_07e3e17f83064ad2a228f234bf57b32a.jpg?w=160&h=160">
<!-- /ko -->
<!-- ko if: ListingPictureUrl == '' || ListingPictureUrl == null -->
<!-- /ko -->
</span>
<!-- ko if: MLS -->
<!-- /ko -->
</div>
</div>
阿波罗的战车
慕娘9325324
相关分类