由于与我使用的工具相关的某些原因,我无法使用<script>
function book(id){
document.cookie = "bike = " + id;
<?php
$_SESSION['from']=$_GET['from'];
$_SESSION['to']=$_GET['to'];
$_SESSION['pickup']=$_GET['pickup'];
$_SESSION['bike']=$_COOKIE['bike'];
---header("Location:bikebooking.php");---
?>
window.location.href = "bikebooking.php";
});
</script>
文件。还有另一种方法可以将配置传递给npm吗?