0
我想提取quickminer xpath值中嵌入的javascript中的經度和緯度。我如何從javascript中提取rapidminer xpath值
< script type = "text/javascript" >
$("document").ready(function() {
MultiMaps.init('{"elementName":"map","latitude":"55.046253842870506","longitude":"-8.275406306447621","zoom":16,"showMarker":true,"showArea":false,"areaSize":0,"showControls":1,"draggable":1,"maxZoom":18,"minZoom":7,"hitcode":"100","zoomLocked":false,"lateLoad":true,"lateLoadIds":"#smi-map-link","bizmapWaitTime":"800","multipleAreas":[],"mapButtons":["map-button"],"satButtons":["sat-button"],"svButtons":["sv-button"],"clustering":true,"isMarkerDraggable":false,"jumpToGoogleIds":"","key":"AIzaSyBvf2e2eg1SyR7Lq5INzGDrIInkgKHT1oI","onlyGoogle":true,"lazyLoad":false}');
}); < /script>
我試圖
//h:html/head/script[@type='text/javascript']//text()
至少提取所有從JavaScript中的文本,但它不是爲我工作。有什麼建議麼?