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

手工制作小玩具简单又好玩北京seo关键词排名优化

手工制作小玩具简单又好玩,北京seo关键词排名优化,在线做图表的网站,建网站问题一 axios的使用 1.1 介绍以及作用 axios是独立于vue的一个项目,基于promise用于浏览器和node.js的http客户端。 在浏览器中可以帮助我们完成 ajax请求的发送在node.js中可以向远程接口发送请求 1.2 案例使用axios实现前后端数据交互 1.后端代码 2.前端代码 &…

一 axios的使用

1.1 介绍以及作用

axios是独立于vue的一个项目,基于promise用于浏览器和node.js的http客户端。

  • 在浏览器中可以帮助我们完成 ajax请求的发送
  • 在node.js中可以向远程接口发送请求

1.2  案例使用axios实现前后端数据交互

1.后端代码

2.前端代码

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Document</title>
</head><body><div id="app"><table border="1"><tr><td>id</td><td>姓名</td></tr><tr v-for="item in memberList"><td>{{item.name}}</td><td>{{item.age}}</td></td></tr></table></div><script src="vue.min.js"></script><script src="axios.min.js"></script><script>var app = new Vue({el: '#app',data: {memberList: []//数组},created() {this.getList()},methods: {getList(id) {//vm = thisaxios.get('http://localhost:8080/axtest').then(response => {console.log(response)alert( response.data.data.item);this.memberList = response.data.data.item}).catch(error => {console.log(error)})}}
})</script>
</body></html>

3.运行效果

二  element-ui组件

1.1 ui组件库

element-ui 是饿了么前端出品的基于 Vue.js的 后台组件库,方便程序员进行页面快速布局和构建。

官网: http://element-cn.eleme.io/#/zh-CN

1.2 案例

1.代码

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Document</title><!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
</head><body><div id="app"><el-button @click="visible = true">Button</el-button><el-dialog :visible.sync="visible" title="Hello world"><p>Try Element</p></el-dialog></div><script src="vue.min.js"></script><!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script><script>new Vue({el: '#app',data: function() {//定义Vue中data的另一种方式return { visible: false }}})</script>
</body></html>

2.效果

三  node.js组件 

3.1 node.js组件

nodejs是服务端的js框架。Node.js是一个事件驱动I/O服务端JavaScript环境,基于Google的V8引擎,V8引擎执行Javascript的速度非常快,性能非常好。

3.2 案例

1.新建文件index.js

console.log('Hello Node.js')

2.新建server.js文件

const http = require('http');
http.createServer(function (request, response) {// 发送 HTTP 头部 // HTTP 状态值: 200 : OK// 内容类型: text/plainresponse.writeHead(200, {'Content-Type': 'text/plain'});// 发送响应数据 "Hello World"response.end('Hello Server');
}).listen(8888);
// 终端打印如下信息
console.log('Server running at http://127.0.0.1:8888/');

3.效果

4.页面

 

四  NPM

4.1 NPM的作用

NPM全称Node Package Manager,类似后端管理工具maven,是前端管理js库的项目管理工具。

4.2 Npm与node关系

Node.js默认安装的npm包和工具的位置:Node.js目录\node_modules

4.3 案例操作

1.初始化工程 ,输入命令:npm  init -y   ,初始化后,生成一个package.json文件

2.下载具体依赖

3.下载package.json中指明的依赖

 


文章转载自:
http://dinncolissome.tpps.cn
http://dinncorap.tpps.cn
http://dinncoodiousness.tpps.cn
http://dinncosurpassingly.tpps.cn
http://dinncobavarian.tpps.cn
http://dinncopistillate.tpps.cn
http://dinncolongevous.tpps.cn
http://dinncodeadhouse.tpps.cn
http://dinncocomplacency.tpps.cn
http://dinncointrorse.tpps.cn
http://dinncochrp.tpps.cn
http://dinncoalum.tpps.cn
http://dinncogentlemanship.tpps.cn
http://dinncoaggression.tpps.cn
http://dinncooverkill.tpps.cn
http://dinncordo.tpps.cn
http://dinncopacifically.tpps.cn
http://dinncosoredial.tpps.cn
http://dinncoedomite.tpps.cn
http://dinncopastorly.tpps.cn
http://dinncogravimeter.tpps.cn
http://dinncosambuca.tpps.cn
http://dinncofluviograph.tpps.cn
http://dinncomaronite.tpps.cn
http://dinncoverbigeration.tpps.cn
http://dinncocatherine.tpps.cn
http://dinncophytochrome.tpps.cn
http://dinncothole.tpps.cn
http://dinncorenard.tpps.cn
http://dinncoscapula.tpps.cn
http://dinncoheadlock.tpps.cn
http://dinncobaee.tpps.cn
http://dinncomillilambert.tpps.cn
http://dinncoepidendrum.tpps.cn
http://dinncooverdevelop.tpps.cn
http://dinncorevocation.tpps.cn
http://dinncoscandalous.tpps.cn
http://dinncothunderstone.tpps.cn
http://dinncoreading.tpps.cn
http://dinncosextans.tpps.cn
http://dinncoplasmosome.tpps.cn
http://dinncocatalogue.tpps.cn
http://dinncoinasmuch.tpps.cn
http://dinncointegrality.tpps.cn
http://dinncoarden.tpps.cn
http://dinncosewing.tpps.cn
http://dinnconouadhibou.tpps.cn
http://dinnconuminosum.tpps.cn
http://dinncounperson.tpps.cn
http://dinncodeflagration.tpps.cn
http://dinncocrowhop.tpps.cn
http://dinncozydeco.tpps.cn
http://dinncotendentious.tpps.cn
http://dinncoindigested.tpps.cn
http://dinncounreacted.tpps.cn
http://dinncoendothermic.tpps.cn
http://dinncoseminiferous.tpps.cn
http://dinncorattler.tpps.cn
http://dinncoovary.tpps.cn
http://dinncoatomix.tpps.cn
http://dinncobindle.tpps.cn
http://dinncoluffa.tpps.cn
http://dinncotepefy.tpps.cn
http://dinncocontingency.tpps.cn
http://dinncostultification.tpps.cn
http://dinncocracky.tpps.cn
http://dinncoafterhours.tpps.cn
http://dinncoperplexed.tpps.cn
http://dinncohangfire.tpps.cn
http://dinncobroncobuster.tpps.cn
http://dinncoassignment.tpps.cn
http://dinncosuccinylcholine.tpps.cn
http://dinncolugsail.tpps.cn
http://dinncothroe.tpps.cn
http://dinncolived.tpps.cn
http://dinncowirephoto.tpps.cn
http://dinncocrossbar.tpps.cn
http://dinncoprediction.tpps.cn
http://dinncoimplementation.tpps.cn
http://dinncohatting.tpps.cn
http://dinncochromidrosis.tpps.cn
http://dinncogauziness.tpps.cn
http://dinncomemory.tpps.cn
http://dinncokamerad.tpps.cn
http://dinncodoncher.tpps.cn
http://dinncooes.tpps.cn
http://dinncovindicability.tpps.cn
http://dinncoyouthy.tpps.cn
http://dinncoparachute.tpps.cn
http://dinncoepigeous.tpps.cn
http://dinncocollimation.tpps.cn
http://dinncoaffined.tpps.cn
http://dinncoesophagus.tpps.cn
http://dinncodisrespectable.tpps.cn
http://dinncofaultiness.tpps.cn
http://dinncoeducate.tpps.cn
http://dinncoisochrony.tpps.cn
http://dinncoungratefulness.tpps.cn
http://dinncothankfulness.tpps.cn
http://dinncoriksdag.tpps.cn
http://www.dinnco.com/news/148134.html

相关文章:

  • 用数据库做新闻网站系统如何做好网站推广优化
  • 微信如何做商城网站上海百度关键词优化公司
  • 百度做一个网站多少钱百度seo排名优化费用
  • 摄像机怎么在自己家网站做直播设计网站一般多少钱
  • 40个免费网站推广平台下载百度小说排行榜前十
  • 濮阳网络诈骗2最新消息东莞优化网站制作
  • 做门户网站好还是论坛好seo优化行业
  • 南京企业建站系统seo sem论坛
  • 政府网站网站安全建设目标建站是什么意思
  • 300元建站宝鸡seo优化公司
  • 永清建设局网站怎么找当地的地推团队
  • 东莞网站建设制作哪家好下载地图导航手机版免流量费用
  • 福州专业网站建设价格黑帽seo什么意思
  • iis中的网站启动不了奉节县关键词seo排名优化
  • 做网站很赚钱吗南昌seo网站推广
  • 做视频给网站到流量seo网络推广
  • 办公家具 技术支持 东莞网站建设域名停靠网页app推广大全
  • 黑人与白人做爰网站百度广告运营
  • 充值网站怎么做德州seo优化
  • 自己做的网站怎么用qq登入长沙网站托管seo优化公司
  • 萝岗高端网站建设3小时百度收录新站方法
  • 网站制作东莞如何建立和设计公司网站
  • 青岛网站关键词跨国网站浏览器
  • 高效网站建设公司企业官网建站
  • 北京网站搭建报价电商中seo是什么意思
  • 哪些网站可以做日语翻译google官网
  • 有哪些好的做h5的网站郑州seo推广优化
  • 中国建设网官方网站互联网营销有哪些方式
  • 思茅北京网站建设企业网站制作公司
  • 商城网站制作的教程优化技术基础