展示完整的 JSON 數據,而非僅限於單一元素
P粉771233336
P粉771233336 2023-09-01 12:38:20
0
1
410
<p>這是我的json的樣子。我想要在模態框中顯示我點擊的元素的資料。 </p> <pre class="brush:php;toolbar:false;">[{ "id": 1, "companyName": "test", "image": "https://mmelektronik.com.pl/wp-content/uploads/2017/10/Insert-logo.jpg.png", "location": "Warsaw", "salary": "10000", "skill": "Junior", "tags": "test", "jobDescription": "test", "title": "UI Designer" } ] 現在我想要訪問jobDescription並在模態框中顯示它。 </pre> <pre class="brush:php;toolbar:false;">b-modal(hide-footer="", :id="id") template(#modal-title="") | 訊息 .d-block.text-center p {{ 在這裡想要jobDescription }} b-button(variant="primary") 應用</pre> <p>這是我打開模態框的方式。 </p> <pre class="brush:php;toolbar:false;">openModal(item) { this.offer = item; this.$bvModal.show(this.id); }</pre>
P粉771233336
P粉771233336

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!