import React,{Component } from 'react' import './App.css'; class App extends Component{ scrollToBottom() { if (this.messagesEnd) { const scrollHeight ...
分类:
其他好文 时间:
2020-07-20 22:56:47
阅读次数:
162
1、项目初始 基于vue-cli搭建项目 vue create news-app 页面采用flex布局、样式使用sass 2、首页的搭建 主要包括导航栏,轮播图,及主要新闻的展示 2、点击导航栏可进行不同新闻的切换 通过id的不同获得不同的数据,进行页面渲染,每个页面只展示5条数据,对页面进行分页, ...
分类:
Web程序 时间:
2020-07-20 15:50:35
阅读次数:
169
前言 我们再使用vue脚手架开发项目时,不可避免的涉及到多个环境来回切换接口调用地址的问题,在开发环境中可能会通过 ip 来访问后台接口,但是当项目上线后就要把对用的接口地址换成生产环境的地址,肯定不能再用 ip 来调用,因此我们每次打包发布的时候都要更改相关配置,非常痛苦,今天我们一起来通过代码的 ...
分类:
其他好文 时间:
2020-07-20 10:26:05
阅读次数:
192
src\TodiList.vue <template> <div id="app"> <input v-model="inputValue" /> <button @click="handleSubmit">提交</button> <ul> <todo-item v-for="(item,index ...
分类:
其他好文 时间:
2020-07-19 23:57:30
阅读次数:
109
IDE 集成开发环境(Integrated Development Environment )VIM #经典的linux下的文本编辑器Emacs #linux文本编辑器,比VIM更容易使用Eclipse #Java IDE,支持python,C,C++Visual Studio #微软开发的IDE, ...
分类:
编程语言 时间:
2020-07-19 23:28:55
阅读次数:
84
1. 什么是socket Socket就是应用层与TCP/IP协议族通信的中间软件抽象层,它是一组接口。 在设计模式中,Socket其实就是一个门面模式,它把复杂的TCP/IP协议族隐藏在Socket接口后面, 对用户来说,一组简单的接口就是全部,让Socket去组织数据,以符合指定的协议。 Soc ...
分类:
Web程序 时间:
2020-07-19 23:08:22
阅读次数:
89
一、云硬盘备份 1、环境准备 创建了一个盘 挂在给虚拟机 格式化硬盘 挂载 创建一些测试文件 在存储节点上找到这个磁盘文件 lvs dd if=/dev/mapper/cinder--ssd-volume--45d1e99f--5845--49c0--b7d7--709267d38d82 of=/o ...
分类:
其他好文 时间:
2020-07-19 18:10:37
阅读次数:
93
服务端 using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Thr ...
类的继承: 当使用class Pig:public Animal{} 就可以继承Animal里面的属性, 类的函数改写: 对于继承父类的属性,可以在子类里面重新被定义和改写 #include <iostream> class Animal{ public: std::string mouth; An ...
分类:
编程语言 时间:
2020-07-19 15:56:48
阅读次数:
61
一、install vuex(vue-cli)-->command 1、vue init webpack vuexdemo 2、cnpm install vuex --save 3、npm run dev 二、interpretation vuex 1、src/store/index.js(prio ...
分类:
其他好文 时间:
2020-07-19 11:52:09
阅读次数:
73