return (dispach)=>{fetch(‘http://192.168.1.6/–/–.php’,{
method:’POST’,
headers:{
‘Accept’:’application/jason’,
‘Content-Type’ : ‘appliaction/json’
},
body:JSON.stringify({
buildingId:buildingId
})})
.then ((response)=>response.json())
.then ((responseJson)=>{
alert(responseJson)
}).catch((error)=>{console.error(error)})
}
سلام
وقت بخیر
میخوام نتایج یه سلکت که فقط یک ردیف برگردونده و توی
responseJson
ریخته رو بدون استفاده از
listview
بخونم
میخوام مقاذیرش رو توی یک سری
props
بریزم
میتونید کمکم کنید