我正在尝试从以下来源中删除data-old-hires
和data-a-dynamic-image
元素:
<img alt="Honeywell Long-Life Pure HEPA QuietCare Air Purifier, 17000"
src="http://ecx.images-amazon.com/images/I/61qtgZMjVDL._SX425_.jpg"
data-old-hires="http://ecx.imagesamazon.com/images/I/61qtgZMjVDL._SL1280_.jpg" class="a-dynamic-image a-stretch-vertical" id="landingImage"
data-a-dynamic-image="{"http://ecx.images-amazon.com/images/I/61qtgZMjVDL._SX466_.jpg":[466,466],"http://ecx.images-amazon.com/images/I/61qtgZMjVDL._SX425_.jpg":[425,425],"http://ecx.images-amazon.com/images/I/61qtgZMjVDL._SY450_.jpg":[450,450],"http://ecx.images-amazon.com/images/I/61qtgZMjVDL._SX522_.jpg":[522,522],"http://ecx.images-amazon.com/images/I/61qtgZMjVDL._SY355_.jpg":[355,355]}" style="max-height: 416px; max-width: 416px;">
但我收到一条错误消息,指出属于old
的{{1}}和hires
是未定义的变量。请帮助我检索data-old-hires
和data-old-hires
元素。
以下是代码:
data-a-dynamic-image