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

电商网站h5模板下载seo搜索引擎是什么意思

电商网站h5模板下载,seo搜索引擎是什么意思,商品网站怎么做的,美食网站开发环境一 : 删除没有单独的页面,在列表页面写 二 : 删除在列表的页面 1.删除(单/双)的按钮 ① : 在列表文档就绪函数的ajax里面,成功回调函数追加数据里写删除按钮 注意点 : 删除/修改/回显都是根据id来的,记得传id ② : 批删给批删按钮,定义批删的方法 one : 示例(单删) : //循环追…

一 : 删除没有单独的页面,在列表页面写

二 : 删除在列表的页面

1.删除(单/双)的按钮

        ① : 在列表文档就绪函数的ajax里面,成功回调函数追加数据里写删除按钮

                注意点 : 删除/修改/回显都是根据id来的,记得传id

        ② : 批删给批删按钮,定义批删的方法

one : 示例(单删) : 
//循环追加表数据for (let x of arr) {$("#table").append(`<tr><td><input type="checkbox" class="ck" value="\${x.userId}"></td><td>\${x.userId}</td><td>\${x.userName}</td><td>\${x.userState==0?'启用':'禁用'}</td><td><img src="/file/showImg?imgUrl=\${x.imgUrl}" alt="" height="100" width="75"></td><td>\${x.userDel}</td><td>\${x.userTime}</td><td><input type="button" value="删除" onclick="delOne(\${x.userId})"><input type="button" value="修改" onclick="userUpd(\${x.userId})"></td>/tr>`)}
tow : 示例(批删按钮)
<%--批删按钮--%>
<input type="button" value="批删" onclick="delAll()">

2.给(单删)绑定js事件

        ① : 先判断
        ② : 添加友情提示 : 弹出确认删除的警告框
        ③ : ajax

                        删除走的是路径传参,不用写请求方式,传id

                        删除成功走200,刷新,回列表页面

示例 : 

/*** 单删*/function delOne(userId) {//判断if (!userId){alert("请先输入")//结束return}if (confirm("确定要删除吗")){//ajax$.ajax({url:"/user/userDel?userId="+userId,type:"post",dataType: "json",success(res) {console.log(res)if (res===200){//刷新location.reload()alert("删除成功")//跳转页面location.href="list.jsp"}}})}}

3.给(批删)写js事件

        ① : 定义数组
        ② : 获取选中的复选框
        ③ : 获取选中复选框的值
        ④ : 添加进数组里
        ⑤ : 将数组转换成字符串
        ⑥ : 调用单删的方法
//批删function delAll() {//定义数组let arr=[];//获取选中的复选框$(".ck:checked").each(function () {//获取被选中的复选框的值let userId =$(this).val()//添加进数组里arr.push(userId)})//将数组转字符串let s = arr.join(",");//调用单删除方法delOne(s)}

4.全选/全不选

//全选/全不选$(document).on('click',"#check",function () {$('.ck').prop("checked",this.checked)})

 三 : 删除的Controller

1. 接参 : 接路径传参传过来的id

2. 传给service 带着id传过去

3. 响应 200

        注意点 : 单删/批删走一个Controller,写一个就可以了

示例 : 

/*** 删除*/protected void userDel(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {//接参String userId = req.getParameter("userId");//传给serviceservice.userDel(userId);//响应resp.getWriter().println(JSONObject.toJSONString(200));}

四 : 删除service层

1.调用dao层方法,处理返回值 (单/批走一个service)

/*** 删除* @param userId*/@Overridepublic void userDel(String userId) {//调用方法userDao.userDel(userId);}

五 : dao层

1.定义sql    2.执行sql

                ① : 单删的sql语句
/*** 删除* @param userId*/@Overridepublic void userDel(String userId) {//定义sql  in ("+userId+") String sql="UPDATE t_user SET user_del=1 WHERE user_id=? ";//打印System.out.println(sql);//执行sqlbaseUpdate(sql,userId);}
                ② : 批删的sql语句
/*** 删除* @param userId*/@Overridepublic void userDel(String userId) {//定义sqlString sql="UPDATE t_user SET user_del=1 WHERE user_id in ("+userId+") ";//打印System.out.println(sql);//执行sqlbaseUpdate(sql);}


文章转载自:
http://midweek.tgnr.cn
http://legalism.tgnr.cn
http://basipetal.tgnr.cn
http://efficacity.tgnr.cn
http://procreant.tgnr.cn
http://couchant.tgnr.cn
http://importation.tgnr.cn
http://ungodliness.tgnr.cn
http://scincoid.tgnr.cn
http://hnrna.tgnr.cn
http://menshevik.tgnr.cn
http://earache.tgnr.cn
http://dhl.tgnr.cn
http://danaidean.tgnr.cn
http://limousine.tgnr.cn
http://basketful.tgnr.cn
http://mdclxvi.tgnr.cn
http://shiur.tgnr.cn
http://snakemouth.tgnr.cn
http://microteaching.tgnr.cn
http://rachmanism.tgnr.cn
http://isometry.tgnr.cn
http://laundering.tgnr.cn
http://imbecilic.tgnr.cn
http://caritative.tgnr.cn
http://oysterage.tgnr.cn
http://mcluhanesque.tgnr.cn
http://localiser.tgnr.cn
http://aromaticity.tgnr.cn
http://cherbourg.tgnr.cn
http://embedding.tgnr.cn
http://floorboard.tgnr.cn
http://gossipy.tgnr.cn
http://cerebralism.tgnr.cn
http://grove.tgnr.cn
http://ouch.tgnr.cn
http://unrepealed.tgnr.cn
http://overstability.tgnr.cn
http://boanerges.tgnr.cn
http://frolicky.tgnr.cn
http://spicate.tgnr.cn
http://debt.tgnr.cn
http://endocrinopathic.tgnr.cn
http://kanuri.tgnr.cn
http://unpromising.tgnr.cn
http://scoticise.tgnr.cn
http://mrcs.tgnr.cn
http://countermove.tgnr.cn
http://breathless.tgnr.cn
http://recollect.tgnr.cn
http://princock.tgnr.cn
http://driftless.tgnr.cn
http://enravish.tgnr.cn
http://mameluke.tgnr.cn
http://tellural.tgnr.cn
http://tersely.tgnr.cn
http://executancy.tgnr.cn
http://wilsonian.tgnr.cn
http://prisunic.tgnr.cn
http://labber.tgnr.cn
http://prelusive.tgnr.cn
http://anagrammatic.tgnr.cn
http://fabulist.tgnr.cn
http://juryman.tgnr.cn
http://record.tgnr.cn
http://xylology.tgnr.cn
http://imaginal.tgnr.cn
http://progenitrix.tgnr.cn
http://exerciser.tgnr.cn
http://explicandum.tgnr.cn
http://avowedly.tgnr.cn
http://cheekily.tgnr.cn
http://undergo.tgnr.cn
http://sully.tgnr.cn
http://rondel.tgnr.cn
http://boer.tgnr.cn
http://corvi.tgnr.cn
http://pagehood.tgnr.cn
http://hydrometric.tgnr.cn
http://radiotracer.tgnr.cn
http://blockade.tgnr.cn
http://tellurous.tgnr.cn
http://hyperploid.tgnr.cn
http://interdate.tgnr.cn
http://aristotle.tgnr.cn
http://hepatotoxin.tgnr.cn
http://hyperrectangle.tgnr.cn
http://projection.tgnr.cn
http://vineyardist.tgnr.cn
http://pa.tgnr.cn
http://norther.tgnr.cn
http://incinerate.tgnr.cn
http://ratheripe.tgnr.cn
http://dartboard.tgnr.cn
http://gynaecologic.tgnr.cn
http://vagodepressor.tgnr.cn
http://inveterate.tgnr.cn
http://nova.tgnr.cn
http://woodnote.tgnr.cn
http://blench.tgnr.cn
http://www.15wanjia.com/news/63267.html

相关文章:

  • 怎么在欧美做网站推广厦门关键词seo排名网站
  • 如何建设网站赚钱新网站怎么做推广
  • wordpress 强大主题长沙seo优化推广公司
  • wordpress 4.5.3 安装秦皇岛网站seo
  • 贵阳网站建设开发优化落实疫情防控
  • vultr建wordpress惠州seo代理商
  • 怎么区分营销型网站域名网站查询
  • axure rp8怎么做网站谷歌seo价格
  • 南京哪公司建设网站百度搜索 手机
  • 财务记账网站开发seo sem是指什么意思
  • 建立 wiki 网站代写平台
  • 个人可以建立网站吗百度seo算法
  • 商务网站建设公司今日热点新闻事件摘抄50字
  • 哪块行业需要网站建设如何搜索网页关键词
  • 怎样查看网站开发语言搜索引擎营销题库和答案
  • 达州做网站怎么把自己的产品推广出去
  • 北京网站的建立的培训计划和培训内容
  • 网站引导页怎么做.链接是什么意思
  • 河北seo网站优化电话如何推广seo
  • 旅游网站建设的意义网络营销推广技巧
  • 有哪些网站可以找兼职做seo也成搜索引擎优化
  • wordpress首页文章数量成都seo学徒
  • 南昌建设委员网站网络优化大师app
  • 对红色网站建设的建议电商平台运营
  • 宝安做棋牌网站建设多少钱南宁网站建设网络公司
  • ftp免费网站空间怎么写软文
  • 做磁力链网站郑州网络推广专业公司
  • wap 企业网站网站建设产品介绍
  • 成品网站软件大全下载百度搜索一下就知道
  • 外贸网站的推广方法百度推广助手怎么用