【问题标题】:Problems with Directions API in Google Maps V3 and jQueryGoogle Maps V3 和 jQuery 中的 Directions API 问题
【发布时间】:2010-06-05 03:43:51
【问题描述】:

我正在尝试让 Google Maps Directions API 与 jQuery 一起使用,并且 我有以下代码..

http://pastebin.com/6jcGt706

#end 是 HTML 中的一个选择列表。我使用的是 jQuery 1.4。我是 不知道出了什么问题..你能帮我吗 这……

如果有人能帮我解决这个问题,我将不胜感激。

谢谢!

【问题讨论】:

标签: javascript jquery html maps


【解决方案1】:

检查 Firebug 或 Web Inpector 控制台是否有任何抛出的错误。您可能只需要更改此行:

var end = $("#end option:selected");

到:

var end = $("#end").val();

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-11-28
    • 2023-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-14
    相关资源
    最近更新 更多