我尝试使用Ajax将所选数据从表格显示为模态,但似乎无法正常工作。我在laravel中使用了宁静的路由。数据已成功获取,但我仍然坚持在模态中显示它。
控制器:
Sub CommandButton1_Click()
Application.ScreenUpdating = False
Dim wb1 As Workbook, wb2 As Workbook
Dim ws1 As Worksheet, ws2 As Worksheet
Dim rng1 As Range, rng2 As Range
Dim UnRng As Range
Set wb1 = Workbooks("TEMPLATE.xls")
Set ws1 = wb1.Sheets("macro")
Set rng1 = ws1.Range(ws1.Range("C3"), ws1.Range("C3").End(xlDown))
rng1.Select
Set wb2 = Workbooks("booking.xlsx")
Set ws2 = wb2.Sheets("ABC")
Set rng2 = ws2.Range(ws2.Range("L3"), ws2.Range("L3").End(xlDown))
rng2.Select
End Sub
的Ajax:
public function show($project)
{
$project = Project::find($project);
return \Response::json($project);
}
来自控制台: