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

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

如何將值從 HTML 傳遞到 Java 類

如何將值從 HTML 傳遞到 Java 類

犯罪嫌疑人X 2023-12-19 21:34:29
我用 HTML 創(chuàng)建了一個(gè)表單,其中包含幾個(gè)描述新項(xiàng)目的字段,用戶希望將其添加到所有項(xiàng)目的列表中:<form v-on:submit.prevent="addItem" class="mt-3">  <div class="container">    <div class="input-field">      <div class="label-styling">Category</div>      <select v-model="selected" class="form-control">        <option disabled value="">Please select one</option>        <option v-for="category in categories" v-bind:value="categories">{{category}}</option>      </select>    </div>    <div class="input-field">      <div class="label-styling">Title</div>      <input type="text" v-model="title" class="form-control">    </div>    <div class="input-field">      <div class="label-styling">Description</div>      <input type="text" v-model="description" class="form-control">    </div>    <div class="input-field">      <div class="label-styling">Reference</div>      <input type="text" v-model="refNumber" class="form-control">    </div>    <div class="input-field">      <div class="label-styling">Image URL</div>      <input type="text" v-model="imageURL" class="form-control">    </div>    <div class="input-field">      <div class="label-styling">Stock</div>      <input type="text" v-model="stock" class="form-control col-lg-2">    </div>  </div></form>我想在 Java 類中讀取并保存從前端傳遞的值到后端。您能否向我推薦一篇關(guān)于該過(guò)程的好文章/視頻,或者只是快速指導(dǎo)我完成它? 謝謝!
查看完整描述

1 回答

?
慕神8447489

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

創(chuàng)建 Java 后端的方法有很多種。 僅提供一些提示:Java Servlet、Spring。

設(shè)置 API 端點(diǎn)后,您可以使用您創(chuàng)建的表單傳遞值。


查看完整回答
反對(duì) 回復(fù) 2023-12-19
  • 1 回答
  • 0 關(guān)注
  • 146 瀏覽

添加回答

舉報(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)