将数据从ajax调用传递到google maps api(在另一个文件中)

时间:2016-10-10 15:49:07

标签: javascript jquery ajax google-maps

我有一个返回latlng数据的ajax调用,如何将该数据传递给另一个文件的Google Maps js?

          $.ajax({
            url: url,
            dataType: 'json',
            type: 'post',
            contentType: 'application/json',
            data: JSON.stringify( {
              mydata 
            } ),
            success: function(data){
       >>>>this data response, send it to the another js file<<<<<<
          }

如何从GM js

中获取该数据

0 个答案:

没有答案