如何在下面的“ colorimages”之后提取输入行?我尝试了几件事,但未能获得所需的输出。任何对此的帮助将不胜感激。预先谢谢你。
P.when('A').register("ImageBlockATF", function(A){
var data = {
'colorImages': { 'initial': [{"hiRes":"https://images-na.ssl-images-amazon.com/images/I/711HLGabj7L._SL1500_.jpg","thumb":"https://images-na.ssl-images-amazon.com/images/I/415%2B0wXFUtL._SX38_SY50_CR,0,0,38,50_.jpg","large":"https://images-na.ssl-images-amazon.com/images/I/415%2B0wXFUtL.jpg","main":{"https://images-na.ssl-images-amazon.com/images/I/711HLGabj7L._SY445_.jpg":[445,93],"https://images-na.ssl-images-amazon.com/images/I/711HLGabj7L._SY500_.jpg":[500,104],"https://images-na.ssl-images-amazon.com/images/I/711HLGabj7L._SY550_.jpg":[550,115],"https://images-na.ssl-images-amazon.com/images/I/711HLGabj7L._SY606_.jpg":[606,126],"https://images-na.ssl-images-amazon.com/images/I/711HLGabj7L._SY679_.jpg":[679,141]},"variant":"MAIN","lowRes":null},{"hiRes":null,"thumb":"https://images-na.ssl-images-amazon.com/images/I/61hQcp2GK1L._SX38_SY50_CR,0,0,38,50_.jpg","large":"https://images-na.ssl-images-amazon.com/images/I/61hQcp2GK1L.jpg","main":{"https://images-na.ssl-images-amazon.com/images/I/61hQcp2GK1L._SX342_.jpg":[327,342],"https://images-na.ssl-images-amazon.com/images/I/61hQcp2GK1L._SX385_.jpg":[368,385],"https://images-na.ssl-images-amazon.com/images/I/61hQcp2GK1L._SX425_.jpg":[406,425],"https://images-na.ssl-images-amazon.com/images/I/61hQcp2GK1L._SX466_.jpg":[445,466],"https://images-na.ssl-images-amazon.com/images/I/61hQcp2GK1L.jpg":[478,500]},"variant":"PT02","lowRes":null}]},
'colorToAsin': {'initial': {}},
'holderRatio': 0.84,
'holderMaxHeight': 700,
'heroImage': {'initial': []},
'heroVideo': {'initial': []},
'spin360ColorData': {'initial': {}},
'spin360ColorEnabled': {'initial': 0},
'spin360ConfigEnabled': true,
'playVideoInImmersiveView':'false',
'tabbedImmersiveViewTreatment':'T2',
'totalVideoCount':'0',
'videoIngressATFSlateThumbURL':'',
'mediaTypeCount':'0',
'atfEnhancedHoverOverlay' : false,
'weblabs' : {},
'aibExp3Layout' : 0,
'aibRuleName' : ''
};
A.trigger('P.AboveTheFold'); // trigger ATF event.
return data;
});
这是我尝试过的
SEARCH SOURCE=REGEXP:"\'colorImages\'.*" EXTRACT=$1
SET !VAR1 {{!EXTRACT}}
PROMPT {{!EXTRACT}}