第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

如何使用 laravel 在引導(dǎo)模式中為每個(gè) id 獲取動(dòng)態(tài)數(shù)據(jù)?

如何使用 laravel 在引導(dǎo)模式中為每個(gè) id 獲取動(dòng)態(tài)數(shù)據(jù)?

慕村225694 2023-05-11 15:58:59
我正在開發(fā)一個(gè)應(yīng)用程序,它需要在每次點(diǎn)擊我的不同圖標(biāo)列表時(shí)顯示數(shù)據(jù)。問(wèn)題是如何根據(jù) id 在 bootstrap modal 中顯示數(shù)據(jù)。提前致謝。索引.blade.php 。<div class="col-md-3">     <button  type="button" class="btn btn-success " data-toggle="modal" data-target="#myModal" data-id="{{$post->id}}">Ajouter  </button> </div><div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="modelTitleId"  aria-hidden="true"><div class="modal-dialog modal-lg" role="document">            <div class="modal-content" >                <div class="modal-header">                    <h5 class="modal-title">Modal title</h5>                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">                        <span aria-hidden="true">&times;</span>                    </button>                </div>                <div class="modal-body" >                    <div class="container-fluid">                          <div class="row">                              <div class="col-md-12 ">                                 <div class="panel panel-default">                                    <div class="panel-heading text-center">Nouvelle annonce</div>                                         <div class=" form-group col-sm-6">                                            <img class="cart-img img-responsive" src="images/cover_image/{{$post->cover_image}}" alt="IMG-PRODUCT">                                         </div>
查看完整描述

2 回答

?
不負(fù)相思意

TA貢獻(xiàn)1777條經(jīng)驗(yàn) 獲得超10個(gè)贊

<button  type="button" class="btn btn-success " data-toggle="modal" data-target="#myModal{{$post->id}}" data-id="{{$post->id}}">Ajouter</button>

<div class="modal fade" id="myModal{{$post->id}}" tabindex="-1" role="dialog" aria-labelledby="modelTitleId" aria-hidden="true">

那對(duì)我有用


查看完整回答
反對(duì) 回復(fù) 2023-05-11
?
qq_遁去的一_1

TA貢獻(xiàn)1725條經(jīng)驗(yàn) 獲得超8個(gè)贊

我通過(guò)在 data-target 和 midel 中傳遞帖子 ID 來(lái)解決我的問(wèn)題


    <button  type="button" class="btn btn-success " data-toggle="modal" data-target="#{{$post->id}}">Ajouter </button>


<div class="modal fade" id="{{$post->id}}" tabindex="-1" role="dialog" aria-labelledby="modelTitleId" aria-hidden="true">


查看完整回答
反對(duì) 回復(fù) 2023-05-11
  • 2 回答
  • 0 關(guān)注
  • 152 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)