我有包含 lonlat 点列表的文本文件。我想通过 ajax call 将此发送到 perlscript。怎么做 ?我的代码是
$.ajax({type:"POST",
url:"softTouchurl",
type:"Text",
data:{file:'pointsArray.txt',action:'showPoints'},
success:function(response){
if(response.success) {
alert("success");
}
}
});