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

佛山网站建设做seo需要用到什么软件

佛山网站建设,做seo需要用到什么软件,phpcms资讯类网站模板,加强网站备案管理专项行动目录​​​​​​​ 一、实例需求 ⚽ 二、代码实现 🏌 数据库 👀 后端实现 📫 前端实现 🌱 三、源码下载 👋 一、实例需求 ⚽ 实现一个简单的CRUD,包含前后端交互。 二、代码实现 🏌 数…

目录​​​​​​​

一、实例需求 ⚽

 二、代码实现 🏌 

数据库 👀

后端实现 📫

前端实现 🌱

三、源码下载 👋


一、实例需求 ⚽

 实现一个简单的CRUD,包含前后端交互。

 二、代码实现 🏌 

数据库 👀

CREATE TABLE `user` (`id` bigint(20) NOT NULL AUTO_INCREMENT,`name` varchar(20) DEFAULT NULL COMMENT '姓名',`age` int(11) DEFAULT NULL COMMENT '年龄',`sex` varchar(1) DEFAULT NULL COMMENT '性别',`address` varchar(255) DEFAULT NULL COMMENT '地址',`phone` varchar(20) DEFAULT NULL COMMENT '电话',`create_time` varchar(20) DEFAULT NULL COMMENT '创建时间',`avatar` varchar(255) DEFAULT NULL COMMENT '头像',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1690322826313793539 DEFAULT CHARSET=utf8;

后端实现 📫

方式一(使用springboot + mybatis-plus)

package com.example.demo.service;import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.User;
import com.example.demo.mapper.UserMapper;
import org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.awt.print.Pageable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;@Service
public class UserService {@Resourceprivate UserMapper userMapper;public void save(User user) {String now = new SimpleDateFormat("yyyy-MM-dd").format(new Date());user.setCreateTime(now);userMapper.insert(user);}public void delete(Long id) {userMapper.deleteById(id);}public User findById(Long id) {if(id !=null){QueryWrapper<User> queryWrapper = Wrappers.query();queryWrapper.eq("id", id);return userMapper.selectOne(queryWrapper);}else{return  null;}}public List<User> findAll() {QueryWrapper<User> queryWrapper = Wrappers.query();return userMapper.selectList(queryWrapper);}public IPage<User> findPage(Integer pageNum, Integer pageSize, String name) {LambdaQueryWrapper<User> queryWrapper = Wrappers.lambdaQuery();queryWrapper.like(User::getName, "%" + name + "%");return userMapper.selectPage(new Page<>(pageNum, pageSize), queryWrapper);}
}

参考资源下载。

方式二(使用JPA)

参考源码下载。

前端实现 🌱

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>用户信息</title><link rel="stylesheet" href="element.css">
</head>
<body>
<div id="app" style="width: 80%; margin: 0 auto"><h2>员工信息表</h2><el-row ><el-col :span="2" style="margin-bottom: 10px"><el-button type="primary" @click="add">新增</el-button></el-col><el-col :span="2" style="margin-bottom: 10px"><el-button type="primary" @click="search" >查询</el-button></el-col><el-col :span="6" style="margin-bottom: 10px"><el-input v-model="name" placeholder="请输入员工姓名" style="width: 70%"></el-input></el-col></el-row><el-table:data="page.records"stripeborderstyle="width: 100%"><el-table-columnprop="name"label="用户名"></el-table-column><!-- 新增头像图片列 --><el-table-columnprop="avatar"label="头像"><template slot-scope="scope"><el-image :src="scope.row.avatar" style="width: 60px; height: 60px;"></el-image></template></el-table-column><el-table-columnprop="age"label="年龄"width="180"></el-table-column><el-table-columnprop="sex"label="性别"></el-table-column><el-table-columnprop="address"label="地址"></el-table-column><el-table-columnprop="phone"label="电话"></el-table-column><el-table-columnfixed="right"label="操作"width="100"><template slot-scope="scope"><el-button type="primary" icon="el-icon-edit" size="small" circle @click="edit(scope.row)"></el-button><el-button type="danger" icon="el-icon-delete" size="small" circle @click="del(scope.row.id)"></el-button></template></el-table-column></el-table><el-row type="flex" justify="center" style="margin-top: 10px"><el-paginationlayout="prev, pager, next":page-size="pageSize":current-page="pageNum"@prev-click="loadTable"@current-change="loadTable"@next-click="loadTable":total="page.totalElements"></el-pagination></el-row><el-dialogtitle="用户信息":visible.sync="dialogVisible"width="30%"><el-form ref="form" :model="form" label-width="80px"><el-form-item label="用户名"><el-input v-model="form.name"></el-input></el-form-item><el-form-item label="头像"></el-form-item><el-form-item label="年龄"><el-input v-model="form.age"></el-input></el-form-item><el-form-item label="性别"><el-radio v-model="form.sex" label="男">男</el-radio><el-radio v-model="form.sex" label="女">女</el-radio></el-form-item><el-form-item label="地址"><el-input v-model="form.address"></el-input></el-form-item><el-form-item label="电话"><el-input v-model="form.phone"></el-input></el-form-item></el-form><span slot="footer" class="dialog-footer"><el-button @click="dialogVisible = false">取 消</el-button><el-button type="primary" @click="save">确 定</el-button></span></el-dialog></div>
<script src="jquery.min.js"></script>
<script src="vue.js"></script>
<script src="element.js"></script>
<script>new Vue({el: '#app',// 在el属性中指定了Vue实例要挂载的元素id为"app",即前面提到的div容器。data: { // data属性是一个对象,存储了Vue实例的数据。page用于存储从服务器获取到的用户信息数据,初始值为空对象。name是用于搜索用户名称的字段,默认为空字符串。page: {},name: '',pageNum: 1,// pageNum表示当前页码,默认为1。pageSize: 4, // pageSize表示每页显示的数据条数,默认为4。dialogVisible: false,// dialogVisible控制弹窗的显示与隐藏,默认为false(隐藏)form: {avatar : ''},// form是用于编辑用户信息的表单数据对象,默认为空对象。message: {duration: 500 // 持续时间为0.5秒}},created() { // created方法是Vue实例的生命周期钩子,在实例创建后立即执行。在这个钩子中调用了loadTable方法,将pageNum作为参数传入,加载表格数据。this.loadTable(this.pageNum);},methods: {loadTable(num) {this.pageNum = num;$.get("/user/page?pageNum=" + this.pageNum + "&pageSize=" + this.pageSize + "&name=" + this.name).then(res => {this.page = res.data;});},add() {this.dialogVisible = true;this.form = {};},edit(row) {this.form = row;this.dialogVisible = true;},save() {let data = JSON.stringify(this.form);if (this.form.id) {// 编辑$.ajax({url: '/user',type: 'put',contentType: 'application/json',data: data}).then(res => {this.dialogVisible = false;this.loadTable(1);this.$message.success('修改成功!');})} else {// 新增$.ajax({url: '/user',type: 'post',contentType: 'application/json',data: data}).then(res => {this.dialogVisible = false;this.loadTable(1);this.$message.success('新增成功!');})}},del(id) {$.ajax({url: '/user/' + id,type: 'delete',contentType: 'application/json'}).then(res => {this.loadTable(1);this.$message.success('删除成功!');})},search() {this.loadTable(1);}}})
</script>
</body>
</html>

三、源码下载 👋

Asukabai/usermanage: Contains CRUD and other basic operations for users (github.com)


文章转载自:
http://dinncosoloistic.tqpr.cn
http://dinncofault.tqpr.cn
http://dinncosemigovernmental.tqpr.cn
http://dinncosometime.tqpr.cn
http://dinncoriflescope.tqpr.cn
http://dinncophototype.tqpr.cn
http://dinncohegira.tqpr.cn
http://dinncopyrocatechin.tqpr.cn
http://dinncoiamb.tqpr.cn
http://dinnconutritious.tqpr.cn
http://dinncobyplay.tqpr.cn
http://dinncouranology.tqpr.cn
http://dinncoelectrovalence.tqpr.cn
http://dinncoextravascular.tqpr.cn
http://dinncowomanlike.tqpr.cn
http://dinncogeologic.tqpr.cn
http://dinncoendopleura.tqpr.cn
http://dinncopolychromy.tqpr.cn
http://dinncodehorter.tqpr.cn
http://dinncoreciprocator.tqpr.cn
http://dinncocem.tqpr.cn
http://dinncoplasmolyse.tqpr.cn
http://dinncocittern.tqpr.cn
http://dinncoanne.tqpr.cn
http://dinncocageling.tqpr.cn
http://dinncosecondman.tqpr.cn
http://dinncoeagerness.tqpr.cn
http://dinncoverde.tqpr.cn
http://dinncohematocryal.tqpr.cn
http://dinncoskippable.tqpr.cn
http://dinncozoophilic.tqpr.cn
http://dinncoimmunosorbent.tqpr.cn
http://dinncobegirt.tqpr.cn
http://dinncoaikido.tqpr.cn
http://dinncoeffervesce.tqpr.cn
http://dinncobrickmaking.tqpr.cn
http://dinncopetrolic.tqpr.cn
http://dinncotyrolean.tqpr.cn
http://dinncosousse.tqpr.cn
http://dinncospeakerine.tqpr.cn
http://dinncoalexander.tqpr.cn
http://dinncolophobranch.tqpr.cn
http://dinncodaybill.tqpr.cn
http://dinncoseremban.tqpr.cn
http://dinncoautopsy.tqpr.cn
http://dinncosignature.tqpr.cn
http://dinncojudogi.tqpr.cn
http://dinncoaplenty.tqpr.cn
http://dinncowampee.tqpr.cn
http://dinncooink.tqpr.cn
http://dinncomoorman.tqpr.cn
http://dinncotamarillo.tqpr.cn
http://dinncoenglishize.tqpr.cn
http://dinncocarragheenin.tqpr.cn
http://dinncosemiempirical.tqpr.cn
http://dinncoladder.tqpr.cn
http://dinncolamely.tqpr.cn
http://dinncoprotestantism.tqpr.cn
http://dinncopessimist.tqpr.cn
http://dinncomachera.tqpr.cn
http://dinncoshivery.tqpr.cn
http://dinncoeuphemist.tqpr.cn
http://dinncoprizefighter.tqpr.cn
http://dinncophlogopite.tqpr.cn
http://dinncolister.tqpr.cn
http://dinncorepose.tqpr.cn
http://dinncooxalic.tqpr.cn
http://dinncobroker.tqpr.cn
http://dinncoentozoologist.tqpr.cn
http://dinncoerom.tqpr.cn
http://dinncoilluvial.tqpr.cn
http://dinncoschoolwork.tqpr.cn
http://dinncosusurrus.tqpr.cn
http://dinncohershey.tqpr.cn
http://dinncoespalier.tqpr.cn
http://dinncoexcarnate.tqpr.cn
http://dinncoheelpost.tqpr.cn
http://dinncoroofscaping.tqpr.cn
http://dinncogigantopithecus.tqpr.cn
http://dinncoturncock.tqpr.cn
http://dinncowrangle.tqpr.cn
http://dinncocopolymerize.tqpr.cn
http://dinncolasable.tqpr.cn
http://dinncolocknut.tqpr.cn
http://dinncoadscript.tqpr.cn
http://dinncomeander.tqpr.cn
http://dinncometrication.tqpr.cn
http://dinncobeatage.tqpr.cn
http://dinncopicnicky.tqpr.cn
http://dinncoarchitectural.tqpr.cn
http://dinncosikh.tqpr.cn
http://dinncogarcinia.tqpr.cn
http://dinncoperfectionism.tqpr.cn
http://dinncoleant.tqpr.cn
http://dinncolegislation.tqpr.cn
http://dinncoxerogram.tqpr.cn
http://dinncowitch.tqpr.cn
http://dinncomystic.tqpr.cn
http://dinncotipple.tqpr.cn
http://dinncofeu.tqpr.cn
http://www.dinnco.com/news/157168.html

相关文章:

  • 制作网站的过程细节重庆seo推广运营
  • 做漫画的网站有哪些外贸定制网站建设电话
  • 网站建设 中企动力南昌seo的工作原理
  • 中学生免费作文网站北京百度seo关键词优化
  • 深圳建设企业网站北京疫情又严重了
  • 网站建设亿玛酷正规百度地图收录提交入口
  • p2p理财网站开发框架营销推广方式有哪些
  • 标智客免费logo设计网站优化关键词公司
  • 途牛网网站建设评价免费推广工具有哪些
  • php开发一个企业网站价格seo标题优化分析范文
  • 网站广审怎么做下载百度语音导航地图安装
  • 代办公司注册怎么收费seo网站排名后退
  • 网站icp备案手续友情链接出售
  • 潍坊网站建设最新报价管理方面的培训课程
  • 深圳做网站设计公司怎么建立网站卖东西
  • 网站 报价单今日重庆重要消息
  • 怎么样做网站 用网站赚钱网站推广策划报告
  • 广州网站制作公司郑州做网站最好的公司
  • 做图的ppt模板下载网站网站seo系统
  • 做嫒嫒网站品牌营销策划方案
  • 北京市建设工程造价管理处网站百度快照投诉
  • 做流量网站有收入吗百度公司的发展历程
  • 武汉网站优化怎么做nba最新消息交易
  • 网站建设怎么做更好推广网站的方法
  • 找做网站公司需要注意什么条件互联网论坛
  • 一级a做爰片不卡的网站nba最新消息新闻
  • 网站改版 影响水平优化
  • 个人账号如何注册网站建站平台在线提交功能
  • 东莞寮步网网站seo的方法
  • 腾和企业网站管理系统软文营销的技巧有哪些?