我在我的代码中遇到问题,但找不到解决方案,已经以各种方式修改但没有成功.
码:
private
{ Private declarations }
procedure getImgInfo(Sender: TObject; A, B: String);
Run Code Online (Sandbox Code Playgroud)
和:
procedure TfMain.Button1Click(Sender: TObject);
var
i, Idx, Left, Top, Count : integer;
Graph : TGraphic;
Img : TImage;
EdPath, EdFileName : TEdit;
begin
openImg.Execute;
Left := 5;
Top := 5;
Count := 0;
Idx := 0;
for i:=0 to openImg.Files.Count-1 do
begin
try
begin
Graph := TPngImage.Create;
Graph.LoadFromFile(openImg.Files[i]);
EdPath := TEdit.Create(pImgs);
EdPath.Left := Left + 101;
EdPath.Visible := False;
EdPath.Text := ExtractFilePath(openImg.Files[i]);
EdFileName := TEdit.Create(pImgs);
EdFileName.Left := …Run Code Online (Sandbox Code Playgroud) 我正在尝试让Google地图自动填写"城市 - 州,国家/地区"格式的地址,但它会返回此信息:
简而言之:只返回城市,但我不知道它来自哪里.
我用这种方式测试了它:
var input = document.getElementById('address');
$(function () {
var options = {
types: ['(cities)']
};
var autocomplete = new google.maps.places.Autocomplete(input, options);
});
Run Code Online (Sandbox Code Playgroud)
和JS:
<script src="https://maps.googleapis.com/maps/api/js?key=****&libraries=places"></script>
Run Code Online (Sandbox Code Playgroud)
如果我删除types: ['(cities)']继续而不显示其余的地址.
我哪里做错了?