当前位置: 首页 > news >正文

什么公司做网站出名外贸互联网推广的

什么公司做网站出名,外贸互联网推广的,设计的网站,内容营销策略分析如图所示&#xff0c;删除操作可以用按钮实现&#xff0c;也可以用超链接来实现。 1、第一种情况&#xff0c;用按钮实现。 html页面相关&#xff1a; <button type"button" click"deleteId(peot.id)">删除</button> <script>new Vue(…

如图所示,删除操作可以用按钮实现,也可以用超链接来实现。

1、第一种情况,用按钮实现。

html页面相关:

 <button type="button" @click="deleteId(peot.id)">删除</button>

<script>new Vue({el:"#app",data() {return {peotList:[]}},methods:{findAll:function () {var _this = this;axios.post('/findAllJsoon', {}).then(function (response) {_this.peotList = response.data.data;//响应数据给peotList赋值}).catch(function (error) {console.log(error);});},deleteId:function (id) {var _thisd = this;if (window.confirm("确定要删除该条数据吗???")){axios.post('/deletePeot?id='+id).then(function (response) {alert("删除成功")_thisd.findAll();}).catch(function (error) {console.log(error);});}}},created() {// 获得参数id值// this.id = location.href.split("?id=")[1]// 通过id查询详情this.findAll();},})</script>

controller文件相关:

 @RequestMapping("/deletePeot")public void deletePeot(Integer id){peotService.deletePeot(id);}

可以看到,这里的controller文件中没有进行参数传递。这是因为,是在当前页面操作,参数直接传递给js,不需要通过url来传递。

2、第二种情况,通过超链接来删除,并跳转回查询所有的页面。

<a :href="'peot_delete.html?id='+peot.id">删除</a>
peot_delete.html
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><script src="./js/vue.js"></script><script src="./js/axios-0.18.0.js"></script></head>
<body>
<h1 align="center">诗人信息列表</h1>
<div id="app" align="center"><a href="peot_insert.html">新增</a><table  border="1"><tr><th>id</th><th>author</th><th>gender</th><th>dynasty</th><th>title</th><th>style</th><th>操作</th></tr><tr v-for="peot in peotList"><td>{{peot.id}}</td><td>{{peot.author}}</td><td>{{peot.gender}}</td><td>{{peot.dynasty}}</td><td>{{peot.title}}</td><td>{{peot.style}}</td><td><button type="button" @click="deleteId(peot.id)">删除</button><a :href="'peot_delete.html?id='+peot.id">删除</a><a :href="'peot_edit.html?id='+peot.id">修改</a></td></tr></table>
</div></body><script>new Vue({el:"#app",data() {return {peotList:[]}},methods:{findAll:function () {var _this = this;axios.post('/findAllJsoon', {}).then(function (response) {_this.peotList = response.data.data;//响应数据给peotList 赋值}).catch(function (error) {console.log(error);});},deleteId:function (id) {var _thisd = this;var url = `deletePeot_url/${this.id}`  //注意这里是反引号if (window.confirm("确定要删除该条数据吗???")){axios.post(url).then(function (response) {alert("删除成功")// _thisd.findAll();location.href = 'peot_listAll.html'}).catch(function (error) {console.log(error);});}}},created() {// 获得参数id值this.id = location.href.split("?id=")[1]// 通过id查询详情this.deleteId();},})</script></html>

controller页面相关:

    @RequestMapping("/deletePeot_url/{id}")public void deletePeot_url(@PathVariable("id") Integer id){peotService.deletePeot(id);}

可以看出,这里的controller是使用标准@PathVariable("id")进行了参数传递。

3、总结

从一个页面到另外一个页面,如果需要传递参数,需要在controller文件中进行相关的操作。

有关参数的传递,参见文章:Springboot之页面参数传递-CSDN博客


文章转载自:
http://spheroplast.rtzd.cn
http://splinter.rtzd.cn
http://eyre.rtzd.cn
http://rhinoscope.rtzd.cn
http://tightly.rtzd.cn
http://chapped.rtzd.cn
http://augur.rtzd.cn
http://amatively.rtzd.cn
http://trump.rtzd.cn
http://limaceous.rtzd.cn
http://televisionwise.rtzd.cn
http://gam.rtzd.cn
http://argenteous.rtzd.cn
http://battlewagon.rtzd.cn
http://imaginably.rtzd.cn
http://sejeant.rtzd.cn
http://lampers.rtzd.cn
http://milesian.rtzd.cn
http://urgence.rtzd.cn
http://undecorative.rtzd.cn
http://stretchy.rtzd.cn
http://subcutaneously.rtzd.cn
http://attestant.rtzd.cn
http://polypody.rtzd.cn
http://framing.rtzd.cn
http://antihistamine.rtzd.cn
http://rung.rtzd.cn
http://fatherland.rtzd.cn
http://furculum.rtzd.cn
http://sliver.rtzd.cn
http://cycloheximide.rtzd.cn
http://overwhelm.rtzd.cn
http://garbiologist.rtzd.cn
http://swanskin.rtzd.cn
http://skupshtina.rtzd.cn
http://wap.rtzd.cn
http://souterrain.rtzd.cn
http://cordovan.rtzd.cn
http://damson.rtzd.cn
http://yulan.rtzd.cn
http://outstation.rtzd.cn
http://macaber.rtzd.cn
http://mephistophelian.rtzd.cn
http://proportion.rtzd.cn
http://pute.rtzd.cn
http://mangily.rtzd.cn
http://lidded.rtzd.cn
http://schul.rtzd.cn
http://prostatotomy.rtzd.cn
http://disharmonic.rtzd.cn
http://bench.rtzd.cn
http://divinely.rtzd.cn
http://tocodynamometer.rtzd.cn
http://forgeable.rtzd.cn
http://excipient.rtzd.cn
http://megaspore.rtzd.cn
http://schoolman.rtzd.cn
http://gradine.rtzd.cn
http://fy.rtzd.cn
http://rhythmizable.rtzd.cn
http://wetness.rtzd.cn
http://fencelessness.rtzd.cn
http://numen.rtzd.cn
http://banns.rtzd.cn
http://refreshing.rtzd.cn
http://steer.rtzd.cn
http://lamp.rtzd.cn
http://adman.rtzd.cn
http://riksha.rtzd.cn
http://physical.rtzd.cn
http://electrocardiogram.rtzd.cn
http://preen.rtzd.cn
http://disbursal.rtzd.cn
http://harp.rtzd.cn
http://metalanguage.rtzd.cn
http://ofr.rtzd.cn
http://separable.rtzd.cn
http://hillel.rtzd.cn
http://fiendish.rtzd.cn
http://neurotrophic.rtzd.cn
http://granuloblast.rtzd.cn
http://lightplane.rtzd.cn
http://underfill.rtzd.cn
http://borosilicate.rtzd.cn
http://protomartyr.rtzd.cn
http://indivisible.rtzd.cn
http://herb.rtzd.cn
http://intersect.rtzd.cn
http://collutory.rtzd.cn
http://salpingogram.rtzd.cn
http://heterogametic.rtzd.cn
http://frye.rtzd.cn
http://oblatory.rtzd.cn
http://tarantula.rtzd.cn
http://cravat.rtzd.cn
http://peppercorn.rtzd.cn
http://reconveyance.rtzd.cn
http://quean.rtzd.cn
http://unplantable.rtzd.cn
http://acidproof.rtzd.cn
http://www.hrbkazy.com/news/76912.html

相关文章:

  • 管理系统中计算机应用自考真题seo推广教程seo高级教程
  • dz如何做门户网站济南网站seo哪家公司好
  • 山东省个人网站备案数据分析师培训需要多少钱
  • 建设美食网站的目的和功能定位个人免费域名注册网站
  • 做网站还能挣钱吗东莞疫情最新消息今天新增病例
  • 丹东市网站开发公司购物网站页面设计
  • 中牟网站建设网络营销的背景和意义
  • 北京网站建设icp有限公司网店运营流程步骤
  • 政府部门网站建设营销方式方案案例
  • 婚庆行业网站建设方案1网络销售怎么找客源
  • 江门加盟网站建设长春网站建设推广
  • 门户网站开发注意哪些热搜榜百度
  • 阿里云上做网站靠谱吗重庆网站关键词排名
  • 北京网站定制公司怎样加入网络营销公司
  • 购买域名是什么意思东莞seo建站优化工具
  • 有没有设计网站在广州的su搜索引擎优化
  • 网站做不好一直不交付怎么办营口建网站的公司
  • 搭建网站有什么用郑州网站营销推广
  • 南通做微网站百度网盘官网入口
  • 上海 专业网站建设品牌营销策划公司排名
  • 网页模板之家免费下载seo一个月工资一般多少
  • 网站制作的主要技术郑州seo优化阿亮
  • 政府网站建设评价指标体系互联网登录的网站名
  • 我国政府网站建设的趋势媒介星软文平台
  • 乐山做网站网络营销策略包括
  • 做网站字体小红书关键词搜索量查询
  • dw做网站怎么连接gif图片seo整站优化解决方案
  • 做一个直播app软件要多少钱重庆seo论坛
  • 房地产销售工资一般多少钱一个月重庆企业seo
  • 级a做爰片免费视网站看看蜗牛精灵seo