自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 收藏
  • 关注

转载 vue 复制功能 复制到剪切板

首先 使用npm安装依赖npm install --save vue-clipboard2然后在main.js中注入//复制到剪切板importVueClipboardfrom'vue-clipboard2'Vue.use(VueClipboard)最后在项目文件中使用<spantitle=...

2019-09-29 11:28:00 232

转载 vue 上传文件

<inputtype="file"ref="files"style="width:268px;"/><el-buttonclass="submitBtn"type="primary"@click="submitForm($event)">确认发送权益</el-button>methods:{...

2019-09-24 15:07:00 141

转载 git 提交代码

进入项目目录 1:先拉取代码 防止覆盖git pull 2:查看你修改过的文件git status 有这么几种状态:1:Untracked: 没有被跟踪,一般是新增的文件, 还没有加入到git仓库, 不参与版本控制. 通过git add 状态变为Staged2:Modified: 文件已修改, 仅仅是修改, 并没有进行其他的操作3:deleted: 文件已删除,本地删除,服务器上还没...

2019-08-28 11:09:00 221

转载 阻止事件冒泡

面试的时候遇到一个问题需要用css 去阻止事件冒泡so 做个笔记css阻止冒泡.none{  pointer-events: none;  cursor: default;  opacity: 0.6;}jQuery阻止冒泡并兼容IEif(event && event.stopPropagation){event.stopPropagation(); /...

2019-08-13 11:30:00 127

转载 移动端开发

<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" /><meta content="yes" name="apple-mobile-web-app-capable" /><meta con...

2019-08-13 10:30:00 94

转载 angular6 管道多参数传输 Pipe

在html页面中 使用冒号隔开在管道页面 变量名 逗号隔开转载于:https://www.cnblogs.com/king94Boy/p/11134887.html

2019-07-04 21:00:00 1123

转载 在div上添加小三角

&::before{ width: 0; height: 0; position: absolute; content: ""; right: 10px; top: 9px; border-right: 7px dashed transparent; border-bottom: 7px solid currentColor; border-left: 7px ...

2019-07-01 16:07:00 690

转载 安装vue-cli过程中卡住

在安装vue-cli过程中走到项目描述那里卡了需要干这么几步第一是否安装nodejs第二是否安装webpack(也许可以忽略不看)第三是否安装webpack-cli(也许可以忽略不看)第四是否安装vue-cli第五检查nodejs版本是否过高转载于:https://www.cnblogs.com/king94Boy/p/11073531.html...

2019-06-23 17:49:00 1783

转载 angular6 使用@Input() @Output()

@Input()在 B组件的TS文件中定义@Input()authenticationText;@Input()previewUrl;@Input()side;在A组件的html文件中使用方法这样就可以A B组件传值@Output()在B组件中定义@Output()key = new EventEmitter();在B组件 TS文...

2019-06-19 17:12:00 414

转载 angular6 想要获取页面某些事件 如 点击 window宽高等等

angular6 想要监听页面某些事件 如 点击 window宽高 使用@HostListener('click', ['$event.target'])onClick(btn) {   console.log( btn);}待续。转载于:https://www.cnblogs.com/king94Boy/p/10986823.html...

2019-06-06 20:36:00 424

转载 如何将项目添加到git上

1、cd 到你要添加的项目文件夹中2、使用命令 git init注:将你的目录管理成git仓库 就是初始化git3、使用命令 git add . (注意一定要加点哦)注:将你的文件添加到git库中4、使用命令 git commit -m '你的备注文件'注:将你的文件提交到git仓库中,然后备注你提交的文件是什么内容是什么主题是什么等5...

2019-05-31 14:27:00 558

转载 使用vue-cli

准备工作: node + npm + vue-cli确保node安装成功1、终端查询一下 node -v2、使用命令全局安装vue-cli  npm install -g vue-cli3、使用命令创建项目  vue init webpack basics(项目名称)$ vue init webpack projectName -- 安装vue-c...

2019-04-24 09:55:00 118

转载 bootstrap4 常用样式类名 (供自己参考)

1、容器和网格系统容器container 固定宽度,不同尺寸固定了不同的宽度container-fluid 100%宽度栅格系统cal-xs//<768pxcal-sm //>=768pxcal-md //>=992pxcal-lg //>=1200px2、字体颜色及背景颜色字体text-muted 柔和text-pri...

2019-04-04 12:01:00 230

转载 键盘按下 keyCode 的值

<html> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" language=JavaScript> document.onkeydown=function(e...

2019-01-17 11:50:00 163

转载 angluar bulid 的时候报错

EPERM: operation not permitted, unlink 'D:\project\ploutoz-web\dist\plo-lib\fesm2015'Error: EPERM: operation not permitted, unlink 'D:\project\ploutoz-web\dist\plo-lib\fesm2015'出错...

2019-01-10 14:45:00 101

转载 背景颜色加上渐变

background: -moz-linear-gradient(top, #353c63 0%, #1b203c 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #353c63), color-stop(100%, #1b203c));background: -webkit...

2018-11-20 18:01:00 166

转载 webstorm 快捷键 自己查阅

1. ctrl + shift + n: 打开工程中的文件,目的是打开当前工程下任意目录的文件。2. ctrl + j: 输出模板3. ctrl + b: 跳到变量申明处4. ctrl + alt + T: 围绕包裹代码(包括zencoding的Wrap with Abbreviation)5. ctrl + []: 匹配 {}[]6. ctrl + F12: 可以显示当前文件的结构7....

2018-11-13 14:32:00 95

转载 input 不能输入汉字 和负数

onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"转载于:https://www.cnblogs.com/king94Boy/p/9952014.html

2018-11-13 14:28:00 921

转载 自动识别电脑版和手机版来跳转css样式

<script> function loadCSS() { if((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|wOSBrowser|BrowserNG|WebOS)/i))) { document.write('<link hre...

2018-11-06 19:03:00 298

转载 git相关知识

git 命令拉去代码 git clone + 项目地址git命令将现有的项目添加到GIit上转载于:https://www.cnblogs.com/king94Boy/p/9909816.html

2018-11-05 16:29:00 82

转载 css3 编写滚动条 利用伪类

//高宽分别对应横竖滚动条的尺寸::-webkit-scrollbar { width: 16px; height: 16px; }//内阴影 和 圆角::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); border-radius: 10px; }//...

2018-10-20 17:50:00 133

转载 css3 翻转

/*水平翻转*/.flipx { -moz-transform:scaleX(-1); -webkit-transform:scaleX(-1); -o-transform:scaleX(-1); transform:scaleX(-1); filter:FlipH();}/*垂直翻转*/.flipy { -moz-transform:scaleY(-...

2018-09-21 11:09:00 100

转载 angular6 中使用bootstrap

npm install jquery --savenpm install popper.js --savenpm install bootstrap--save然后在node_modules文件夹中可以找到你安装的文件接下来开始修改配置文件在angular.json 文件中添加它们"styles": [ "src/st...

2018-09-18 15:41:00 238

转载 angluar 判断后跳转加参数

多个参数this.router.navigate(["deposits"],{queryParams:{'currencyId':currencyId}});跳转到另一个组件接收的时候this.currencyId = this._activatedRoute.snapshot.queryParams['currencyId'];单个参数...

2018-09-14 12:09:00 103

转载 angular 返回上一页

history.go(-1);转载于:https://www.cnblogs.com/king94Boy/p/9635180.html

2018-09-12 15:44:00 621

转载 安装node vue脚手架 及 项目

首先下载安装node.jsnode官网点这里node -vnpm -vcmd下查看是否安装成功在cmd下安装vuenode安装完成后开始安装vue脚手架使用命令: npm install vue-cli -g在使用vue脚手架安装项目vue init webpack 项目名转载于:https://www.cnblogs.com/kin...

2018-09-12 14:27:00 127

转载 angular 组件跳转组件 并传参数

<button class="btn-link" routerLink="/deposits" [queryParams]="{currencyId:personalAssets.currency_id}">{{'personal-assets.Deposit'|translate}}</button>[queryParams]="{currencyId:...

2018-09-11 19:19:00 283

转载 angluar 表单提交时候报错

Error: If ngModel is used within a form tag, either the name attribute must be set or the formcontrol must be defined as ‘standalone’ in ngModelOptions报这个错的时候就在 input 表单上填上nameokok 不...

2018-08-31 16:16:00 164

转载 angular 中获取select选中的值

html 是这样的<select name="" id="province" class="form-control ipt" (change)="getCity($event.target.value);"> <option value="" *ngFor="let province of provinceInfo" [value]="provin...

2018-08-31 11:20:00 1119

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除