我正在寻求实施自定义Searchview建议。但是我不想让它们改变,我希望这三个建议始终是一样的。
export function submitDetails(details, callback) {
return(resolve, reject) =>{
axios.post(URL, {
"email": details['email'],
"name": details['username'],
"password": details['password']
}).then((data) =>{
callback();
console.log("Success", data);
resolve(data);
}).catch((error) => {
// console.log('error here', error.response.data.message);
console.log('error', error.response);
reject(error.response)
})
}
}
我想要的三个字符串在String [] threeGyms中。
有没有简单的方法来实现这个?搜索栏位于Google地图API活动中。