分类目录

链接

2024 年 5 月
 12345
6789101112
13141516171819
20212223242526
2728293031  

近期文章

热门标签

新人福利,免费薅羊毛

vue中引入.svg图标,使用iconfont图标库(SvgIcon组件使用)

阿里巴巴的iconfont是一个很好的图标库,海量的素材可以快速满足开发人员日常对图标的诉求,我们采用symbol引用,官方介绍创建SvgIcon组件<template><svg :class="svgClass" aria-hidden="true"><use :xlink:href="iconName"></use></svg></template><script>export default {name: 'svg-icon',props: {iconClass: {type: String,required: true},className: {type: String}},computed: {iconName() {return `#icon-${this.iconClass}`},svgC...

Others 暂无评论 阅读(217)

vue import .scss报错

新版本的vue-cli已经帮我们把sass-loader配置好了,放在了util.js里面。原来我们需要在webpack.base.config.js中去配置以下这段代码:{ <span class="hljs-attr">test</span>: <span class="hljs-regexp">/\.scss$/</span>, <span class="hljs-attr">use</span>: [ { <span class="hljs-attr">loader</span>: <span class="hljs-string">'style-loader'</span>...

前端 暂无评论 阅读(169)

今天学到一个新数字490837

直接上代码

前端 暂无评论 阅读(121)

Asp.Net Core Filter 深入浅出的那些事-AOP

一、前言在分享ASP.NET Core Filter 使用之前,先来谈谈AOP,什么是AOP 呢?AOP全称Aspect Oriented Programming意为面向切面编程,也叫做面向方法编程,是通过预编译方式和运行期动态代理的方式实现不修改源代码的情况下给程序动态统一添加功能的技术。AOP技术利用一种称为“横切”的技术,剖解开封装对象的内部,将影响多个类的公共行为封装到一个可重用的模块中,并将其命名为Aspect切面。所谓的切面,简单来说就是与业务无关,却为业务模块所共同调用的逻辑,将其封装起来便于减少系统的重复代码,降低模块的...

.NET 暂无评论 阅读(232)

vue使用element-ui中的Message 、MessageBox 、Notification

import Vue from 'vue';import ElementUI from 'element-ui';// 添加响应拦截器axios.interceptors.response.use(function (response) {// 对响应数据做点什么// console.log('对响应数据做点什么')return response;}, function (error) {// 对响应错误做点什么console.log(ElementUI)//Message 消息提示ElementUI.Message({message: '恭喜你,这是一条成功消息',type: 'success'});//Notification 通知ElementUI.Notification({title: '警告',message: '这是一条警告的提示消息',type: 'warni...

.NET, 前端 暂无评论 阅读(310)

centos7下安装mongodb

下载压缩包我这里选择的是先在官网下载好,然后复制到服务器下我下载的是mongodb-linux-x86_64-rhel70-4.0.10.tgz解压cd /usrtar zxvf mongodb-linux-x86_64-rhel70-4.0.10.tgz1mv mongodb-linux-x86_64-rhel70-4.0.10 mongodb设置环境变量:vi /etc/profile末尾添加:export PATH=/usr/mongodb/bin:$PATH生效:source /etc/profile3)回到mongodb目录下创建数据库目录cd /usr/mongodb/4)在该目录下新建配置文件touch mongodb.conf5)创建数据库目录mkdir data6)创建日志目录...

MongoDB 暂无评论 阅读(123)

centos7 firewalld

1、firewalld的基本使用启动: systemctl start firewalld关闭: systemctl stop firewalld查看状态: systemctl status firewalld开机禁用  : systemctl disable firewalld开机启用  : systemctl enable firewalld2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。启动一个服务:systemctl start firewalld.service关闭一个服务:systemctl stop firewalld.service重启一个服务:systemctl restart firewalld.service显示一个服务的状态:systemctl s...

LINUX 暂无评论 阅读(276)

How to pull docker image behind proxy

My host OS is CENTOS7, and running behind proxy. The output of executing docker run hello-world is like this:# docker run hello-worldUnable to find image 'hello-world:latest' locallyTrying to pull repository registry.access.redhat.com/hello-world ... failedTrying to pull repository docker.io/library/hello-world ... failedError while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate is valid for FG3K6C3A1580002...

LINUX 暂无评论 阅读(205)

docker 安装rabbitMQ

拉取镜像<span class="hljs-attribute">docker</span> pull rabbitmq查看所有镜像<span class="hljs-attribute">docker</span> image启动RabbitMQdocker run -d --hostname my-rabbit --name rabbit -p 15672:15672 -p 5672:5672 rabbitmq启动rabbitmq_management管理界面docker exec -it rabbitmq rabbitmq-plugins enable rabbitmq_management 访问地址http://linuxip地址:15672,这里的用户名和密码默认都是guest 

LINUX 暂无评论 阅读(186)

docker挂载目录没有权限

加上红色字:docker run -d -p 80:80 --name nginx --privileged=true -v /server/nginx/www:/usr/share/nginx/html -v /server/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /server/nginx/logs:/var/log/nginx nginx

LINUX 暂无评论 阅读(334)