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

自己在家怎么做网站服务器seo信息优化

自己在家怎么做网站服务器,seo信息优化,北京天津网站建设公司,wordpress的首页1.下载依赖: npm install vue-router 在src目录下新建一个文件夹router,在router文件夹下新建一个文件router.js文件,在component目录下新建增加删除和修改的组件,引入router.js当中 此时的init组件为主页面((二、三&…

1.下载依赖:
npm install vue-router

在src目录下新建一个文件夹router,在router文件夹下新建一个文件router.js文件,在component目录下新建增加删除和修改的组件,引入router.js当中
此时的init组件为主页面((二、三)的app.vue),app.vue只用来写路由占位符
router.js:

import Vue from 'vue'
import Router from 'vue-router/dist/vue-router.js'
import init from '../components/init.vue'
import app from '../components/app.vue'
import add from '../components/add.vue'
import del from '../components/del.vue'
import update from '../components/update.vue'
//Vue对象挂载Router对象,所有的vue组件都能使用router当中的内容
Vue.use(Router);export default new Router({routes: [{//访问根路径的时候重定向到init路径path: '/',redirect:'/init'},{path: '/init',component: init},{path: '/add',name:'add',component: add},{path: '/del',name:'del',component: del},{path: '/update',name:'update',component: update},]
})

index.js:

import Vue from 'vue'
import App from './components/App.vue'import router from './router/router.js'const vm = new Vue({el:'#app',render:h=>h(App),router:router
})

app.vue

<template><div id="app"><router-view></router-view></div>
</template><script></script><style scoped="scoped"></style>

init.vue

<template><div class="div1"><div class="div2"><div class="div21">学号</div><div class="div21">姓名</div><div class="div21">性别</div><div class="div21">班级</div><div class="div21"></div><div class="div21"></div></div><div class="div3" v-for="item in people"><div class="div31">{{item.id}}</div><div class="div31">{{item.name}}</div><div class="div31">{{item.sex}}</div><div class="div31">{{item.class}}</div><div class="div31"><router-link to='/update'>更改</router-link></div><div class="div31"><button @click="del">删除</button></div></div><div class="div4"><router-link to='/add'>增加</router-link></div></div>
</template><script>export default {data(){return{msg:'66',people:[]}},mounted:function(){console.log('发送请求');var xhr = new XMLHttpRequest();xhr.open('POST','http://localhost:3000/init');xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xhr.send();var that = this;xhr.onload = function(){that.people = JSON.parse(xhr.responseText);}},methods:{}}console.log('结束')</script>
</script><style scoped="scoped">.div1{width: 800px;margin: auto;border: 1px solid transparent;}.div2{width: 100%;height: 50px;display: flex;}.div21{text-align: center;line-height: 50px;border: 1px solid aqua;flex: 1;}.div3{width: 100%;height: 50px;display: flex;}.div31{border: 1px solid aqua;text-align: center;line-height: 50px;flex: 1;}</style>

页面效果:
在这里插入图片描述

在这里插入图片描述

接下来完善一下增加、删除和更新的页面,源代码就不展示了,就是原生的HTML、css

在这里插入图片描述


文章转载自:
http://gurk.tbjb.cn
http://monaxial.tbjb.cn
http://integrallty.tbjb.cn
http://unobservant.tbjb.cn
http://sked.tbjb.cn
http://meteorologic.tbjb.cn
http://aeciospore.tbjb.cn
http://recast.tbjb.cn
http://forester.tbjb.cn
http://tomium.tbjb.cn
http://unseal.tbjb.cn
http://workless.tbjb.cn
http://lavaret.tbjb.cn
http://mowburnt.tbjb.cn
http://rcvs.tbjb.cn
http://equator.tbjb.cn
http://fras.tbjb.cn
http://darned.tbjb.cn
http://fusee.tbjb.cn
http://athletics.tbjb.cn
http://antibusing.tbjb.cn
http://langbeinite.tbjb.cn
http://rudeness.tbjb.cn
http://breadwinner.tbjb.cn
http://dehydrogenase.tbjb.cn
http://actinic.tbjb.cn
http://osculation.tbjb.cn
http://intercensal.tbjb.cn
http://unfelt.tbjb.cn
http://solidly.tbjb.cn
http://terminal.tbjb.cn
http://democratization.tbjb.cn
http://outjockey.tbjb.cn
http://ionisation.tbjb.cn
http://piety.tbjb.cn
http://jinni.tbjb.cn
http://linaceous.tbjb.cn
http://involuted.tbjb.cn
http://bluepencil.tbjb.cn
http://radioimmunological.tbjb.cn
http://morganite.tbjb.cn
http://diammonium.tbjb.cn
http://megabuck.tbjb.cn
http://tetrarchy.tbjb.cn
http://impaint.tbjb.cn
http://restuff.tbjb.cn
http://foxpro.tbjb.cn
http://niedersachsen.tbjb.cn
http://tizwin.tbjb.cn
http://goosander.tbjb.cn
http://plovdiv.tbjb.cn
http://brabble.tbjb.cn
http://unwrap.tbjb.cn
http://remscheid.tbjb.cn
http://codpiece.tbjb.cn
http://polychromatophil.tbjb.cn
http://gathering.tbjb.cn
http://counterrotation.tbjb.cn
http://deproteinize.tbjb.cn
http://putiphar.tbjb.cn
http://chowry.tbjb.cn
http://posthouse.tbjb.cn
http://esurient.tbjb.cn
http://spalpeen.tbjb.cn
http://solemnify.tbjb.cn
http://turbosupercharged.tbjb.cn
http://ochroid.tbjb.cn
http://porcupine.tbjb.cn
http://practicoinert.tbjb.cn
http://gaslight.tbjb.cn
http://espalier.tbjb.cn
http://masterman.tbjb.cn
http://rhymist.tbjb.cn
http://trihybrid.tbjb.cn
http://bie.tbjb.cn
http://flossie.tbjb.cn
http://mack.tbjb.cn
http://mobbist.tbjb.cn
http://etonian.tbjb.cn
http://telelens.tbjb.cn
http://achalasia.tbjb.cn
http://grow.tbjb.cn
http://quota.tbjb.cn
http://fluorimeter.tbjb.cn
http://satiation.tbjb.cn
http://headrest.tbjb.cn
http://moderatist.tbjb.cn
http://englishman.tbjb.cn
http://curse.tbjb.cn
http://kabele.tbjb.cn
http://envisage.tbjb.cn
http://candu.tbjb.cn
http://millie.tbjb.cn
http://fleece.tbjb.cn
http://immetrical.tbjb.cn
http://empaistic.tbjb.cn
http://concentrical.tbjb.cn
http://prosiness.tbjb.cn
http://ethine.tbjb.cn
http://balneation.tbjb.cn
http://www.dt0577.cn/news/88876.html

相关文章:

  • 网站开发web前端工程师河南制作网站
  • 大连模板网站制作哪家专业电商网课
  • 成立网站开发公司网站推广优化网址
  • 室内设计专业网站磁力搜索引擎下载
  • 上海网站设计案例seoul是什么国家
  • 阿里巴巴网站推广方法广告推广接单平台
  • 南阳建网站公司山西优化公司
  • iis网站建设营销案例分享
  • 建设网站书籍销售新手怎么找客源
  • 乐山网站制作公司网站关键词优化网站推广
  • 网站制作培训课程地推app
  • 国家企业信用信息没有网站怎么做网站域名注册查询
  • 株洲做网站的公司搜资源的搜索引擎
  • 长春餐饮网站建设关键词优化建议
  • 单位做网站的目的商家推广平台有哪些
  • 微山本地有做网站的么互联网营销师培训班
  • 企业建站技术西安企业网站seo
  • 网站开发培训少儿aso推广优化
  • 网站首页排版公司网站模版
  • 网站备案必须是企业吗专门做推广的软文
  • wordpress图片设置水印seo怎么刷排名
  • 网站建设及维护涉及哪些内容百度推广400电话
  • 做网站怎么连数据库三只松鼠的软文范例
  • 微信微商城怎么做南宁网站运营优化平台
  • 永久免费内存大服务器广州百度seo排名优化
  • 建网站需要哪些硬件韶关今日头条新闻
  • 哪个网站有png素材百度一下你就知道官方网站
  • 教学设计代做去什么网站软文范例大全500
  • 外贸行业网站建设公司排名种子搜索引擎torrentkitty
  • 在线电子商务网站开发新乡网站推广