问题描述
我使用 react-places-autocomplete 库在 react 中创建了一个搜索栏组件,当我输入一些文本时,它会显示一些建议,例如县/市名称。我希望它在我点击任何建议时打开这个简单的 DestinationHome 页面。
react-places-autocomplete 使用 google maps javascript API,我将其用于地点建议
DestinationHome 代码:
rM = [-3 -1 1 3];
strLabel = dec2bin(0:15);
figure
set(gcf,'Color','White')
hold on
nInc = 1;
for nX = rM
for nY = rM
plot(nX,nY,'b+')
text(nX,nY-0.3,strLabel(nInc,:),...
'HorizontalAlignment','Center')
nInc = nInc + 1;
end
end
xlabel('In-Phase')
ylabel('Quadrature')
title('Scatter plot')
set(gca,'XTick',-4:4)
set(gca,'YTick',-4:4)
axis([-4 4 -4 4])
axis square
grid off
box on
这是搜索条码:
export default class DestinationHome extends Component {
render() {
return (
<div>
<h1>new york</h1>
</div>
)
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)