【发布时间】:2017-06-23 20:23:55
【问题描述】:
需要删除以下 GoogleAPI(地图)链接上的空格。
这是生成位于<head> 中的<script> 的代码。
<script async defer src="https://maps.googleapis.com/maps/api/js?v=3&key=<?JComponentHelper::getParams('com_ohanah')->get('maps_api_key_js')?>"></script>
以上代码生成的完整网址如下:
https://maps.googleapis.com/maps/api/js?v=3&key= CENSORED
这里的问题是生成的代码有一个需要删除的字符的空格。
【问题讨论】:
-
<?trim(JComponentHelper.............)?> -
回显/打印的文本是什么/在哪里?
标签: php joomla maps whitespace