Javascript URL 连接的语法

Javascript systax for URL contatenation

我正在将数据从 JSON 文件提取到地图和表格中。我想 link 到带有给定位置指示的新标签。这个怎么写?

打开Yelp的工作代码link:

<tr><th>Yelp</th><td><a class='url-break' href='" + feature.properties.YelpURL + "' target='_blank'>" + feature.properties.YelpURL + "</a></td></tr>

使用经纬度

的 Google 路线代码无效
<tr><th>Directio</th><td><a class='url-break' href='" + https://www.google.com/maps/dir/ + feature.properties.geo_longitude + feature.properties.geo_latitude + "' target='_blank'>" + Get Directions + "</a></td></tr>

The app in progress

引号放错地方了,替换

<a class='url-break' href='" + https://www.google.com/maps/dir/ + feature.properties.geo_longitude + feature.properties.geo_latitude + "' target='_blank'>

<a class='url-break' href='https://www.google.com/maps/dir/" + feature.properties.geo_longitude +","+ feature.properties.geo_latitude + "' target='_blank'>