Javascript 如何在php循环中编辑本地存储阵列
我有名为“totalPackage”的本地存储阵列。根据我的项目要求,我必须使用PHP循环更改本地存储阵列数据 这里是编码Javascript 如何在php循环中编辑本地存储阵列,javascript,php,jquery,json,mysqli,Javascript,Php,Jquery,Json,Mysqli,我有名为“totalPackage”的本地存储阵列。根据我的项目要求,我必须使用PHP循环更改本地存储阵列数据 这里是编码 if (mysqli_multi_query($con,$sql)){ do{ if ($result=mysqli_store_result($con)){ if(mysqli_num_rows($result) > 0){ $row = mysqli_fetch_array($resu
if (mysqli_multi_query($con,$sql)){
do{
if ($result=mysqli_store_result($con)){
if(mysqli_num_rows($result) > 0){
$row = mysqli_fetch_array($result);
echo $row["totalcost"]." ";
} else {
//echo "0";
}
mysqli_free_result($result);
}
}while (mysqli_next_result($con));
}
当您看到echo$row[“totalcost”]。“”语句我想删除localStorage数组元素 你是说JavaScript的
localStorage
?!是否要从localstorage中删除$row['totalcost'],对吗?localstorage.removeItem(“totalPackage”)代码>?你是说JavaScript的localStorage
?!是否要从localstorage中删除$row['totalcost'],对吗?localstorage.removeItem(“totalPackage”)代码>?