摘要: 登录页面存入localStorage login(){ let _this=this console.log("qq:"+_this.loginForm.username) _this.$http.post('query',_this.loginForm).then(function(respons 阅读全文
posted @ 2021-02-24 17:04 iJunHello 阅读(263) 评论(0) 推荐(0)
摘要: WebSocker是一个保持web客户端与服务器长链接的技术。这样在两者通信过程中如果服务器有消息发送给客户端,就无需等待web客户端发送一个请求了(HTTP协议是请求相应式,如果没有Web客户端的请求,服务器是无法对客户端做相应的)。 单独的部署一个WebSocket服务器很简单,只需要几个注解即 阅读全文
posted @ 2021-02-24 16:46 iJunHello 阅读(140) 评论(0) 推荐(0)
摘要: 消费端pom.xml <!--消费者 实体类+web--> <dependencies> <dependency> <groupId>org.example</groupId> <artifactId>springcloudapi</artifactId> <version>1.0-SNAPSHOT 阅读全文
posted @ 2021-02-05 16:04 iJunHello 阅读(105) 评论(0) 推荐(0)
摘要: 提供端依赖pom.xml <!-- 加入eureka依赖--> <!-- 我们需要拿到实体类--> <dependencies> <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starte 阅读全文
posted @ 2021-02-05 15:51 iJunHello 阅读(348) 评论(0) 推荐(0)
摘要: eureka依赖 <dependencies> <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-eureka-server --> <dependency> <groupId 阅读全文
posted @ 2021-02-05 15:26 iJunHello 阅读(73) 评论(0) 推荐(0)
摘要: vue.js推荐使用axios <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>请求</title> <style> [v-clock] { display: none; } </style> </head> 阅读全文
posted @ 2021-02-05 14:38 iJunHello 阅读(275) 评论(0) 推荐(0)
摘要: 组件可以自定义 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>组件</title> </head> <body> <div id="app"> <i-jun v-for="item in items" v- 阅读全文
posted @ 2021-02-05 14:35 iJunHello 阅读(244) 评论(0) 推荐(0)
摘要: v-for遍历数据 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="app"> <!-- 遍历--> <li v-for="(ite 阅读全文
posted @ 2021-02-05 14:18 iJunHello 阅读(184) 评论(0) 推荐(0)
摘要: vue指令表单输入控件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="app"> 输入的文本<input type="text" 阅读全文
posted @ 2021-02-05 14:15 iJunHello 阅读(181) 评论(0) 推荐(0)
摘要: vue监听事件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <!--事件处理--> <div id="app"> <button v-on:cli 阅读全文
posted @ 2021-02-05 14:11 iJunHello 阅读(96) 评论(0) 推荐(0)