我有一个返回lat
和lng
数据的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
中获取该数据