我一直在用純原生 html 和 php 開發(fā)一個項目,我想將其轉(zhuǎn)移到 laravel?,F(xiàn)在,當(dāng)我想在另一個頁面(另一個刀片文件)內(nèi)顯示 iframe(刀片文件)時,我陷入了困境。父頁面正在顯示,但 iframe 出現(xiàn) 404(未找到)錯誤。下面是我的代碼:請注意,這兩個文件位于“view”目錄中的同一文件夾中。父.blade.php<iframe src="child.blade.php">Your browser isn't compatible</iframe>路線Route::group(['prefix' => 'parent'], function () { Route::get('/', 'ParentController@index'); Route::get('/child', 'ParentController@child');});控制器public function index(){ return view('folder/index');}public function child(){ return view('folder/child');}
如何在 laravel Blade 中顯示 iframe
慕尼黑5688855
2023-08-21 17:03:21