【发布时间】:2020-05-19 20:00:24
【问题描述】:
单击按钮重定向到新窗口后,我尝试将两个值从 javascript 传递到另一个刀片文件...这是我的代码
ReportCreate.blade.php js
$("#state").on("change", function() {
var id = $(this).val();
console.log(id)
var cuid = document.getElementById("cu").value;
console.log(cuid)
});
</script>
单击按钮打开新窗口,该窗口带有两个来自 javascript 的值
onclick="openNewWindow('{{ route('sla.slaCategoryTreeListScreen') }}')"
slaCategoryTreeListScreen.blade.php
<!DOCTYPE html>
<script>
// how do i retrieve two value from another blade file
</script>
</html>
【问题讨论】:
标签: javascript php laravel