本文针对的是需要使用天地图api4.0类文档,频繁切换查看数据或者需要全文搜索某个类的方法,原版文档无法满足的情况。
实现方法
研究了文档网页的源码,写了一个方法,全部打开页面,简单粗暴但是高效。
在控制台贴入下方代码,使用 command+f 开始搜索吧!
源码
function open() {
const arr = [{
id: 1,
pId: 0,
name: "地图主类",
open: !0
}, {
id: 12,
pId: 1,
name: "MapOptions",
file: "pages-class/MapOptions.html"
}, {
id: 12,
pId: 1,
name: "Map",
file: "pages-class/Map.html"
}, {
id: 2,
pId: 0,
name: "图层类",
open: !1
}, {
id: 21,
pId: 2,
name: "TileLayerOptions",
file: "pages-class/TileLayerOptions.html"
}, {
id: 22,
pId: 2,
name: "TileLayer",
file: "pages-class/TileLayer.html"
}, {
id: 23,
pId: 2,
name: "TileLayer.TDTOptions",
file: "pages-class/TileLayer.TDTOptions.html"
}, {
id: 24,
pId: 2,
name: "TileLayer.TDT",
file: "pages-class/TileLayer.TDT.html"
}, {
id: 25,
pId: 2,
name: "TileLayer.WMSOptions",
file: "pages-class/TileLayer.WMSOptions.html"
}, {
id: 26,
pId: 2,
name: "TileLayer.WMS",
file: "pages-class/TileLayer.WMS.html"
}, {
id: 27,
pId: 2,
name: "MapType",
file: "pages-class/MapType.html"
}, {
id: 3,
pId: 0,
name: "控件类",
open: !1
}, {
id: 31,
pId: 3,
name: "ControlOptions",
file: "pages-class/ControlOptions.html"
}, {
id: 31,
pId: 3,
name: "Control",
file: "pages-class/Control.html"
}, {
id: 32,
pId: 3,
name: "Control.ZoomOptions",
file: "pages-class/Control.ZoomOptions.html"
}, {
id: 33,
pId: 3,
name: "Control.Zoom",
file: "pages-class/Control.Zoom.html"
}, {
id: 34,
pId: 3,
name: "Control.ScaleOptions",
file: "pages-class/Control.ScaleOptions.html"
}, {
id: 35,
pId: 3,
name: "Control.Scale",
file: "pages-class/Control.Scale.html"
}, {
id: 36,
pId: 3,
name: "Control.CopyrightOptions",
file: "pages-class/Control.CopyrightOptions.html"
}, {
id: 37,
pId: 3,
name: "Control.Copyright",
file: "pages-class/Control.Copyright.html"
}, {
id: 38,
pId: 3,
name: "Control.OverviewMapOptions",
file: "pages-class/Control.OverviewMapOptions.html"
}, {
id: 39,
pId: 3,
name: "Control.OverviewMap",
file: "pages-class/Control.OverviewMap.html"
}, {
id: 40,
pId: 3,
name: "Control.TMapTypeControlOptions",
showImg: "new",
file: "pages-class/Control.TMapTypeControlOptions.html"
}, {
id: 41,
pId: 3,
name: "Control.MapType",
showImg: "new",
file: "pages-class/Control.MapType.html"
}, {
id: 4,
pId: 0,
name: "覆盖物类",
open: !1
}, {
id: 41,
pId: 4,
name: "OverlayOptions",
file: "pages-class/OverlayOptions.html"
}, {
id: 42,
pId: 4,
name: "Overlay",
file: "pages-class/Overlay.html"
}, {
id: 43,
pId: 4,
name: "LabelOptions",
file: "pages-class/LabelOptions.html"
}, {
id: 44,
pId: 4,
name: "Label",
file: "pages-class/Label.html"
}, {
id: 45,
pId: 4,
name: "MarkerOptions",
file: "pages-class/MarkerOptions.html"
}, {
id: 46,
pId: 4,
name: "Marker",
file: "pages-class/Marker.html"
}, {
id: 47,
pId: 4,
name: "IconOptions",
file: "pages-class/IconOptions.html"
}, {
id: 48,
pId: 4,
name: "Icon",
file: "pages-class/Icon.html"
}, {
id: 49,
pId: 4,
name: "InfoWindowOptions",
file: "pages-class/InfoWindowOptions.html"
}, {
id: 410,
pId: 4,
name: "InfoWindow",
file: "pages-class/InfoWindow.html"
}, {
id: 411,
pId: 4,
name: "PolylineOptions",
file: "pages-class/PolylineOptions.html"
}, {
id: 412,
pId: 4,
name: "Polyline",
file: "pages-class/Polyline.html"
}, {
id: 413,
pId: 4,
name: "PolygonOptions",
file: "pages-class/PolygonOptions.html"
}, {
id: 414,
pId: 4,
name: "Polygon",
file: "pages-class/Polygon.html"
}, {
id: 415,
pId: 4,
name: "RectangleOptions",
file: "pages-class/RectangleOptions.html"
}, {
id: 416,
pId: 4,
name: "Rectangle",
file: "pages-class/Rectangle.html"
}, {
id: 417,
pId: 4,
name: "CircleOptions",
file: "pages-class/CircleOptions.html"
}, {
id: 418,
pId: 4,
name: "Circle",
file: "pages-class/Circle.html"
}, {
id: 419,
pId: 4,
name: "SVG",
showImg: "new",
file: "pages-class/SVG.html"
}, {
id: 420,
pId: 4,
name: "SVGOptions",
showImg: "new",
file: "pages-class/SVGOptions.html"
}, {
id: 5,
pId: 0,
name: "工具类",
open: !1
}, {
id: 51,
pId: 5,
name: "MarkToolOptions",
file: "pages-class/MarkToolOptions.html"
}, {
id: 52,
pId: 5,
name: "MarkTool",
file: "pages-class/MarkTool.html"
}, {
id: 53,
pId: 5,
name: "PolygonToolOptions",
file: "pages-class/PolygonToolOptions.html"
}, {
id: 54,
pId: 5,
name: "PolygonTool",
file: "pages-class/PolygonTool.html"
}, {
id: 55,
pId: 5,
name: "PolylineToolOptions",
file: "pages-class/PolylineToolOptions.html"
}, {
id: 56,
pId: 5,
name: "PolylineTool",
file: "pages-class/PolylineTool.html"
}, {
id: 57,
pId: 5,
name: "RectangleToolOptions",
file: "pages-class/RectangleToolOptions.html"
}, {
id: 58,
pId: 5,
name: "RectangleTool",
file: "pages-class/RectangleTool.html"
}, {
id: 59,
pId: 5,
name: "CircleToolOptions",
file: "pages-class/CircleToolOptions.html"
}, {
id: 510,
pId: 5,
name: "CircleTool",
file: "pages-class/CircleTool.html"
}, {
id: 6,
pId: 0,
name: "组件类",
open: !1
}, {
id: 61,
pId: 6,
name: "MarkerClustererOptions",
file: "pages-class/MarkerClustererOptions.html"
}, {
id: 62,
pId: 6,
name: "MarkerClusterer",
file: "pages-class/MarkerClusterer.html"
}, {
id: 63,
pId: 6,
name: "CoordinatePickupOptions",
file: "pages-class/CoordinatePickupOptions.html"
}, {
id: 64,
pId: 6,
name: "CoordinatePickup",
file: "pages-class/CoordinatePickup.html"
}, {
id: 65,
pId: 6,
name: "CloudMarkerCollectionOptions",
showImg: "new",
file: "pages-class/CloudMarkerCollectionOptions.html"
}, {
id: 66,
pId: 6,
name: "CloudMarkerCollection",
showImg: "new",
file: "pages-class/CloudMarkerCollection.html"
}, {
id: 67,
pId: 6,
name: "GridlineLayerOptions",
showImg: "new",
file: "pages-class/GridlineLayerOptions.html"
}, {
id: 68,
pId: 6,
name: "GridlineLayer",
showImg: "new",
file: "pages-class/GridlineLayer.html"
}, {
id: 69,
pId: 6,
name: "PaintBrushToolOptions",
showImg: "new",
file: "pages-class/PaintBrushToolOptions.html"
}, {
id: 610,
pId: 6,
name: "PaintBrushTool",
showImg: "new",
file: "pages-class/PaintBrushTool.html"
}, {
id: 7,
pId: 0,
name: "右键菜单类",
open: !1
}, {
id: 71,
pId: 7,
name: "ContextMenuOptions",
file: "pages-class/ContextMenuOptions.html"
}, {
id: 72,
pId: 7,
name: "ContextMenu",
file: "pages-class/ContextMenu.html"
}, {
id: 73,
pId: 7,
name: "MenuItem",
file: "pages-class/MenuItem.html"
}, {
id: 8,
pId: 0,
name: "实体类",
open: !1
}, {
id: 81,
pId: 8,
name: "LngLatOptions",
file: "pages-class/LngLatOptions.html"
}, {
id: 82,
pId: 8,
name: "LngLat",
file: "pages-class/LngLat.html"
}, {
id: 84,
pId: 8,
name: "LngLatBounds",
file: "pages-class/LngLatBounds.html"
}, {
id: 85,
pId: 8,
name: "PointOptions",
file: "pages-class/PointOptions.html"
}, {
id: 86,
pId: 8,
name: "Point",
file: "pages-class/Point.html"
}, {
id: 87,
pId: 8,
name: "LayerGroup",
showImg: "new",
file: "pages-class/LayerGroup.html"
}, {
id: 9,
pId: 0,
name: "服务类",
showImg: "new",
open: !1
}, {
id: 91,
pId: 9,
name: "搜索",
showImg: ""
}, {
id: 911,
pId: 91,
name: "LocalSearchOptions",
file: "pages-class/service/LocalSearchOptions.html"
}, {
id: 912,
pId: 91,
name: "LocalSearch",
file: "pages-class/service/LocalSearch.html"
}, {
id: 913,
pId: 91,
name: "LocalSearchResult",
file: "pages-class/service/LocalSearchResult.html"
}, {
id: 92,
pId: 9,
name: "公交",
showImg: ""
}, {
id: 921,
pId: 92,
name: "TransitRouteOptions",
file: "pages-class/service/TransitRouteOptions.html"
}, {
id: 922,
pId: 92,
name: "TransitRoute",
file: "pages-class/service/TransitRoute.html"
}, {
id: 923,
pId: 92,
name: "TransitRouteResult",
file: "pages-class/service/TransitRouteResult.html"
}, {
id: 924,
pId: 92,
name: "TransitRoutePlan",
file: "pages-class/service/TransitRoutePlan.html"
}, {
id: 925,
pId: 92,
name: "TransitRouteLine",
file: "pages-class/service/TransitRouteLine.html"
}, {
id: 926,
pId: 92,
name: "BusLineSearchOptions",
file: "pages-class/service/BusLineSearchOptions.html"
}, {
id: 927,
pId: 92,
name: "BusLineSearch",
file: "pages-class/service/BusLineSearch.html"
}, {
id: 928,
pId: 92,
name: "BusListResult",
file: "pages-class/service/BusListResult.html"
}, {
id: 929,
pId: 92,
name: "BusLine",
file: "pages-class/service/BusLine.html"
}, {
id: 93,
pId: 9,
name: "驾车",
showImg: ""
}, {
id: 931,
pId: 93,
name: "DrivingRouteOptions",
file: "pages-class/service/DrivingRouteOptions.html"
}, {
id: 932,
pId: 93,
name: "DrivingRoute",
file: "pages-class/service/DrivingRoute.html"
}, {
id: 933,
pId: 93,
name: "DrivingRouteResult",
file: "pages-class/service/DrivingRouteResult.html"
}, {
id: 934,
pId: 93,
name: "RoutePlan",
file: "pages-class/service/RoutePlan.html"
}, {
id: 935,
pId: 93,
name: "Route",
file: "pages-class/service/Route.html"
}, {
id: 936,
pId: 93,
name: "Step",
file: "pages-class/service/Step.html"
}, {
id: 94,
pId: 9,
name: "逆地理编码",
showImg: ""
}, {
id: 941,
pId: 94,
name: "Geocoder",
file: "pages-class/service/Geocoder.html"
}, {
id: 942,
pId: 94,
name: "GeocoderResult",
file: "pages-class/service/GeocoderResult.html"
}, {
id: 943,
pId: 94,
name: "AddressComponent",
file: "pages-class/service/AddressComponent.html"
}, {
id: 95,
pId: 9,
name: "H5定位",
showImg: "new",
open: !1
}, {
id: 951,
pId: 95,
name: "GeolocationOptions",
file: "pages-class/service/GeolocationOptions.html",
showImg: "new"
}, {
id: 952,
pId: 95,
name: "Geolocation",
file: "pages-class/service/Geolocation.html",
showImg: "new"
}, {
id: 953,
pId: 95,
name: "GeolocationResult",
file: "pages-class/service/GeolocationResult.html",
showImg: "new"
}, {
id: 96,
pId: 9,
name: "IP定位",
showImg: "new",
open: !1
}, {
id: 962,
pId: 96,
name: "LocalCity",
file: "pages-class/service/LocalCity.html",
showImg: "new"
}, {
id: 963,
pId: 96,
name: "LocalCityResult",
file: "pages-class/service/LocalCityResult.html",
showImg: "new"
}, {
id: 97,
pId: 9,
name: "行政区划",
showImg: "new",
open: !1
}, {
id: 972,
pId: 97,
name: "AdministrativeDivisionOptions",
file: "pages-class/service/AdministrativeDivisionOptions.html",
showImg: "new"
}, {
id: 973,
pId: 97,
name: "AdministrativeDivision",
file: "pages-class/service/AdministrativeDivision.html",
showImg: "new"
}, {
id: 974,
pId: 97,
name: "AdministrativeDivisionResult",
file: "pages-class/service/AdministrativeDivisionResult.html",
showImg: "new"
}, {
id: 98,
pId: 9,
name: "数据来源",
showImg: "new",
open: !1
}, {
id: 982,
pId: 98,
name: "DataSourcesOptions",
file: "pages-class/service/DataSourcesOptions.html",
showImg: "new"
}, {
id: 983,
pId: 98,
name: "DataSources",
file: "pages-class/service/DataSources.html",
showImg: "new"
}, {
id: 10,
pId: 0,
name: "符号标绘",
showImg: "new",
open: !1
}, {
id: 101,
pId: 10,
name: "符号覆盖物",
open: !1
}, {
id: 1011,
pId: 101,
name: "CurveFlagOptions",
file: "pages-class/militarySymbols/CurveFlagOptions.html"
}, {
id: 1012,
pId: 101,
name: "CurveFlag",
file: "pages-class/militarySymbols/CurveFlag.html"
}, {
id: 1013,
pId: 101,
name: "RectFlagOptions",
file: "pages-class/militarySymbols/RectFlagOptions.html"
}, {
id: 1014,
pId: 101,
name: "RectFlag",
file: "pages-class/militarySymbols/RectFlag.html"
}, {
id: 1015,
pId: 101,
name: "TriangleFlagOptions",
file: "pages-class/militarySymbols/TriangleFlagOptions.html"
}, {
id: 1016,
pId: 101,
name: "TriangleFlag",
file: "pages-class/militarySymbols/TriangleFlag.html"
}, {
id: 1017,
pId: 101,
name: "BezierCurve2Options",
file: "pages-class/militarySymbols/BezierCurve2Options.html"
}, {
id: 1018,
pId: 101,
name: "BezierCurve2",
file: "pages-class/militarySymbols/BezierCurve2.html"
}, {
id: 1019,
pId: 101,
name: "BezierCurve3Options",
file: "pages-class/militarySymbols/BezierCurve3Options.html"
}, {
id: 10110,
pId: 101,
name: "BezierCurve3",
file: "pages-class/militarySymbols/BezierCurve3.html"
}, {
id: 10111,
pId: 101,
name: "BezierCurveNOptions",
file: "pages-class/militarySymbols/BezierCurveNOptions.html"
}, {
id: 10112,
pId: 101,
name: "BezierCurveN",
file: "pages-class/militarySymbols/BezierCurveN.html"
}, {
id: 10113,
pId: 101,
name: "CardinalCurveOptions",
file: "pages-class/militarySymbols/CardinalCurveOptions.html"
}, {
id: 10114,
pId: 101,
name: "CardinalCurve",
file: "pages-class/militarySymbols/CardinalCurve.html"
}, {
id: 10115,
pId: 101,
name: "ArcOptions",
file: "pages-class/militarySymbols/ArcOptions.html"
}, {
id: 10116,
pId: 101,
name: "Arc",
file: "pages-class/militarySymbols/Arc.html"
}, {
id: 10117,
pId: 101,
name: "GatheringPlaceOptions",
file: "pages-class/militarySymbols/GatheringPlaceOptions.html"
}, {
id: 10118,
pId: 101,
name: "GatheringPlace",
file: "pages-class/militarySymbols/GatheringPlace.html"
}, {
id: 10119,
pId: 101,
name: "CloseCurveOptions",
file: "pages-class/militarySymbols/CloseCurveOptions.html"
}, {
id: 10120,
pId: 101,
name: "CloseCurve",
file: "pages-class/militarySymbols/CloseCurve.html"
}, {
id: 10121,
pId: 101,
name: "RoundRectOptions",
file: "pages-class/militarySymbols/RoundRectOptions.html"
}, {
id: 10122,
pId: 101,
name: "RoundRect",
file: "pages-class/militarySymbols/RoundRect.html"
}, {
id: 10123,
pId: 101,
name: "SectorOptions",
file: "pages-class/militarySymbols/SectorOptions.html"
}, {
id: 10124,
pId: 101,
name: "Sector",
file: "pages-class/militarySymbols/Sector.html"
}, {
id: 10125,
pId: 101,
name: "DiagonalArrowOptions",
file: "pages-class/militarySymbols/DiagonalArrowOptions.html"
}, {
id: 10126,
pId: 101,
name: "DiagonalArrow",
file: "pages-class/militarySymbols/DiagonalArrow.html"
}, {
id: 10127,
pId: 101,
name: "StraightArrowOptions",
file: "pages-class/militarySymbols/StraightArrowOptions.html"
}, {
id: 10128,
pId: 101,
name: "StraightArrow",
file: "pages-class/militarySymbols/StraightArrow.html"
}, {
id: 10129,
pId: 101,
name: "DoveTailDiagonalArrowOptions",
file: "pages-class/militarySymbols/DoveTailDiagonalArrowOptions.html"
}, {
id: 10130,
pId: 101,
name: "DoveTailDiagonalArrow",
file: "pages-class/militarySymbols/DoveTailDiagonalArrow.html"
}, {
id: 10131,
pId: 101,
name: "DoveTailStraightArrowOptions",
file: "pages-class/militarySymbols/DoveTailStraightArrowOptions.html"
}, {
id: 10132,
pId: 101,
name: "DoveTailStraightArrow",
file: "pages-class/militarySymbols/DoveTailStraightArrow.html"
}, {
id: 10133,
pId: 101,
name: "DoubleArrowOptions",
file: "pages-class/militarySymbols/DoubleArrowOptions.html"
}, {
id: 10134,
pId: 101,
name: "DoubleArrow",
file: "pages-class/militarySymbols/DoubleArrow.html"
}, {
id: 10135,
pId: 101,
name: "PolylineArrowOptions",
file: "pages-class/militarySymbols/PolylineArrowOptions.html"
}, {
id: 10136,
pId: 101,
name: "PolylineArrow",
file: "pages-class/militarySymbols/PolylineArrow.html"
}, {
id: 10137,
pId: 101,
name: "BezierCurveArrowOptions",
file: "pages-class/militarySymbols/BezierCurveArrowOptions.html"
}, {
id: 10138,
pId: 101,
name: "BezierCurveArrow",
file: "pages-class/militarySymbols/BezierCurveArrow.html"
}, {
id: 10139,
pId: 101,
name: "CardinalCurveArrowOptions",
file: "pages-class/militarySymbols/CardinalCurveArrowOptions.html"
}, {
id: 10140,
pId: 101,
name: "CardinalCurveArrow",
file: "pages-class/militarySymbols/CardinalCurveArrow.html"
}, {
id: 10141,
pId: 101,
name: "SectorSearchOptions",
file: "pages-class/militarySymbols/SectorSearchOptions.html"
}, {
id: 10142,
pId: 101,
name: "SectorSearch",
file: "pages-class/militarySymbols/SectorSearch.html"
}, {
id: 10143,
pId: 101,
name: "ParallelSearchOptions",
file: "pages-class/militarySymbols/ParallelSearchOptions.html"
}, {
id: 10144,
pId: 101,
name: "ParallelSearch",
file: "pages-class/militarySymbols/ParallelSearch.html"
}, {
id: 102,
pId: 10,
name: "符号标绘工具",
open: !1
}, {
id: 1021,
pId: 102,
name: "CurveFlagToolOptions",
file: "pages-class/militarySymbols/CurveFlagToolOptions.html"
}, {
id: 1022,
pId: 102,
name: "CurveFlagTool",
file: "pages-class/militarySymbols/CurveFlagTool.html"
}, {
id: 1023,
pId: 102,
name: "RectFlagToolOptions",
file: "pages-class/militarySymbols/RectFlagToolOptions.html"
}, {
id: 1024,
pId: 102,
name: "RectFlagTool",
file: "pages-class/militarySymbols/RectFlagTool.html"
}, {
id: 1025,
pId: 102,
name: "TriangleFlagToolOptions",
file: "pages-class/militarySymbols/TriangleFlagToolOptions.html"
}, {
id: 1026,
pId: 102,
name: "TriangleFlagTool",
file: "pages-class/militarySymbols/TriangleFlagTool.html"
}, {
id: 1027,
pId: 102,
name: "BezierCurve2ToolOptions",
file: "pages-class/militarySymbols/BezierCurve2ToolOptions.html"
}, {
id: 1028,
pId: 102,
name: "BezierCurve2Tool",
file: "pages-class/militarySymbols/BezierCurve2Tool.html"
}, {
id: 1029,
pId: 102,
name: "BezierCurve3ToolOptions",
file: "pages-class/militarySymbols/BezierCurve3ToolOptions.html"
}, {
id: 10210,
pId: 102,
name: "BezierCurve3Tool",
file: "pages-class/militarySymbols/BezierCurve3Tool.html"
}, {
id: 10211,
pId: 102,
name: "BezierCurveNToolOptions",
file: "pages-class/militarySymbols/BezierCurveNToolOptions.html"
}, {
id: 10212,
pId: 102,
name: "BezierCurveNTool",
file: "pages-class/militarySymbols/BezierCurveNTool.html"
}, {
id: 10213,
pId: 102,
name: "CardinalCurveToolOptions",
file: "pages-class/militarySymbols/CardinalCurveToolOptions.html"
}, {
id: 10214,
pId: 102,
name: "CardinalCurveTool",
file: "pages-class/militarySymbols/CardinalCurveTool.html"
}, {
id: 10215,
pId: 102,
name: "ArcToolOptions",
file: "pages-class/militarySymbols/ArcToolOptions.html"
}, {
id: 10216,
pId: 102,
name: "ArcTool",
file: "pages-class/militarySymbols/ArcTool.html"
}, {
id: 10217,
pId: 102,
name: "CloseCurveToolOptions",
file: "pages-class/militarySymbols/CloseCurveToolOptions.html"
}, {
id: 10218,
pId: 102,
name: "CloseCurveTool",
file: "pages-class/militarySymbols/CloseCurveTool.html"
}, {
id: 10219,
pId: 102,
name: "GatheringPlaceToolOptions",
file: "pages-class/militarySymbols/GatheringPlaceToolOptions.html"
}, {
id: 10220,
pId: 102,
name: "GatheringPlaceTool",
file: "pages-class/militarySymbols/GatheringPlaceTool.html"
}, {
id: 10221,
pId: 102,
name: "RoundRectToolOptions",
file: "pages-class/militarySymbols/RoundRectToolOptions.html"
}, {
id: 10222,
pId: 102,
name: "RoundRectTool",
file: "pages-class/militarySymbols/RoundRectTool.html"
}, {
id: 10223,
pId: 102,
name: "BezierCurveArrowToolOptions",
file: "pages-class/militarySymbols/BezierCurveArrowToolOptions.html"
}, {
id: 10224,
pId: 102,
name: "BezierCurveArrowTool",
file: "pages-class/militarySymbols/BezierCurveArrowTool.html"
}, {
id: 10225,
pId: 102,
name: "SectorToolOptions",
file: "pages-class/militarySymbols/SectorToolOptions.html"
}, {
id: 10226,
pId: 102,
name: "SectorTool",
file: "pages-class/militarySymbols/SectorTool.html"
}, {
id: 10227,
pId: 102,
name: "CardinalCurveArrowToolOptions",
file: "pages-class/militarySymbols/CardinalCurveArrowToolOptions.html"
}, {
id: 10228,
pId: 102,
name: "CardinalCurveArrowTool",
file: "pages-class/militarySymbols/CardinalCurveArrowTool.html"
}, {
id: 10229,
pId: 102,
name: "DiagonalArrowToolOptions",
file: "pages-class/militarySymbols/DiagonalArrowToolOptions.html"
}, {
id: 10230,
pId: 102,
name: "DiagonalArrowTool",
file: "pages-class/militarySymbols/DiagonalArrowTool.html"
}, {
id: 10231,
pId: 102,
name: "DoubleArrowToolOptions",
file: "pages-class/militarySymbols/DoubleArrowToolOptions.html"
}, {
id: 10232,
pId: 102,
name: "DoubleArrowTool",
file: "pages-class/militarySymbols/DoubleArrowTool.html"
}, {
id: 10233,
pId: 102,
name: "DoveTailDiagonalArrowToolOptions",
file: "pages-class/militarySymbols/DoveTailDiagonalArrowToolOptions.html"
}, {
id: 10234,
pId: 102,
name: "DoveTailDiagonalArrowTool",
file: "pages-class/militarySymbols/DoveTailDiagonalArrowTool.html"
}, {
id: 10235,
pId: 102,
name: "DoveTailStraightArrowToolOptions",
file: "pages-class/militarySymbols/DoveTailStraightArrowToolOptions.html"
}, {
id: 10236,
pId: 102,
name: "DoveTailStraightArrowTool",
file: "pages-class/militarySymbols/DoveTailStraightArrowTool.html"
}, {
id: 10237,
pId: 102,
name: "ParallelSearchToolOptions",
file: "pages-class/militarySymbols/ParallelSearchToolOptions.html"
}, {
id: 10238,
pId: 102,
name: "ParallelSearchTool",
file: "pages-class/militarySymbols/ParallelSearchTool.html"
}, {
id: 10139,
pId: 102,
name: "PolylineArrowToolOptions",
file: "pages-class/militarySymbols/PolylineArrowToolOptions.html"
}, {
id: 10140,
pId: 102,
name: "PolylineArrowTool",
file: "pages-class/militarySymbols/PolylineArrowTool.html"
}, {
id: 10241,
pId: 102,
name: "SectorSearchToolOptions",
file: "pages-class/militarySymbols/SectorSearchToolOptions.html"
}, {
id: 10242,
pId: 102,
name: "SectorSearchTool",
file: "pages-class/militarySymbols/SectorSearchTool.html"
}, {
id: 10243,
pId: 102,
name: "StraightArrowToolOptions",
file: "pages-class/militarySymbols/StraightArrowToolOptions.html"
}, {
id: 10244,
pId: 102,
name: "StraightArrowTool",
file: "pages-class/militarySymbols/StraightArrowTool.html"
}, {
id: 10245,
pId: 102,
name: "HandDrawingToolOptions",
file: "pages-class/militarySymbols/HandDrawingToolOptions.html"
}, {
id: 10246,
pId: 102,
name: "HandDrawingTool",
file: "pages-class/militarySymbols/HandDrawingTool.html"
}, {
id: 103,
pId: 10,
name: "符号标绘控件",
open: !1
}, {
id: 1031,
pId: 103,
name: "Control.militarySymbolsOptions",
file: "pages-class/militarySymbols/Control.militarySymbolsOptions.html"
}, {
id: 1032,
pId: 103,
name: "Control.militarySymbols",
file: "pages-class/militarySymbols/Control.militarySymbols.html"
}]
arr.map(item => {
if (item.file) {
$(".class_rt").append(`<iframe frameborder='0' onload="initIframePage(this);" src='${item.file}' scrolling='no' style="min-width: 700px; min-height: 600px"></iframe>`)
}
})
}
function initIframePage(iframe) {
const iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
if (iframeWin.document.body) {
iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
}
}
open()
3 条评论
博客弄的真不错
同在用天地图的文档。偶然间看到这篇文章 舒服了 感谢🙏
哈哈哈 巧了