
web
文章平均质量分 56
xif3681
这个作者很懒,什么都没留下…
展开
-
There is no directive with "exportAs" set to "ngbDatepicker"
问题:ngb-boostrap日历控件There is no directive with "exportAs" set to "ngbDatepicker" https://github.com/ng-bootstrap/ng-bootstrap/issues/2433 NgbModal' imported by the module 'HomeModule'. Please...原创 2018-08-24 16:30:16 · 2221 阅读 · 0 评论 -
NgbModal关闭close
一、NgbActiveModal出错'NgbActiveModal' imported by the module 'HomeModule'. Please add a @NgModule annotation二、NgbModalRef import { NgbModal, ModalDismissReasons, NgbModalRef } from '@ng-bootstra...原创 2018-08-23 17:14:14 · 1336 阅读 · 0 评论 -
Ng-bootstrap下拉菜单NgbDropdown
html: <div ngbDropdown class="d-inline-block"> <button class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle>Toggle dropdown</button> ..原创 2018-07-17 15:57:36 · 1308 阅读 · 0 评论 -
Bootstrap3 与Bootstrap4垂直水平居中
Bootstrap水平居中// 文本:class ="text-center"// 图片居中:class = "center-block"//其他元素://bootstrap3水平居中:利用bootstrap列偏移class = "col-md-offset-4 col-lg-offset-4col-xl-offset-4"// boots...原创 2018-07-03 15:58:42 · 101008 阅读 · 1 评论 -
CSS3 媒体查询
1、CSS3/* Small devices (portrait tablets and large phones, 600px and up) */@media only screen and (min-width: 600px) { .example {background: green;}}/* Medium devices (landscape tablets, ...原创 2018-09-17 17:49:13 · 319 阅读 · 0 评论 -
HTML5 data-* 自定义属性
参考文章:http://www.cnblogs.com/dolphinX/p/3348458.html转载 2018-09-13 17:51:15 · 750 阅读 · 0 评论 -
CSS函数
1.attr():返回元素属性值 2.calc():计算器 3.filler():滤镜 4.linear-gradient() 创建一个线性渐变的图像 5.radial-gradient() 用径向渐变创建图像。 6.repeating-linear-gradient() 用重复的线性渐变创建图像。 7.repeating-radi...原创 2018-09-13 18:00:32 · 722 阅读 · 0 评论 -
JavaScript 获取当前时间戳:
JavaScript 获取当前时间戳:第一种方法:var timestamp = Date.parse(new Date());结果:1280977330000第二种方法:var timestamp = (new Date()).valueOf();结果:1280977330748第三种方法:var timestamp=new Date().getTime();结果:128097...转载 2018-09-28 10:04:20 · 2440 阅读 · 0 评论 -
JavaScript求两个数组的交集,差集
// 交并补comparison(a, b) {const a_arr: any[] = [];const b_arr: any[] = [];const a_surplus: any[] = [];const b_surplus: any[] = [];let i = 0;if (b.length === 0) {while (i < a.length) ...原创 2018-10-25 11:58:44 · 1061 阅读 · 0 评论 -
压力测试工具
目录1 性能测试... 22 压力测试(Stress Test)... 22.1 网站测试... 22.2 系统测试要求... 33 测试工具... 33.1 Webbench. 43.1.1 Ubuntu 下载安装... 53.1.2 ...原创 2018-12-20 16:06:28 · 14768 阅读 · 0 评论 -
HTML5 data-* 自定义属性
data-* 自定义属性例:<div id =”test” >Click here</div>设置方式:为div添加一个data-name的自定义属性答:通过dataset进行操作var test = document.getElemById(‘test’);test.dataset.name = ‘myname’;通过set...原创 2019-03-28 17:29:17 · 915 阅读 · 0 评论 -
CSS3 动画
CSS3 动画当在@keyframes创建动画,把它绑定到一个选择器,否则动画不会有任何效果。指定至少这两个CSS3的动画属性绑定向一个选择器:规定动画的名称 规定动画的时长简单例子:@keyframes myfirst{ from {background: red;} to {background: yellow;}}@-web...原创 2019-03-28 17:30:41 · 236 阅读 · 0 评论 -
跨域
跨域问题如何解决 什么是跨域 同源策略:所谓同源策略,它是浏览器的一种最核心最基本的安全策略。它对来至不同源的文档或这脚本对当前文档的读写操作做了限制。同协议、ip、端口的脚本才会执行。只要协议、域名、端口有任何一个不同,都被当作是不同的域.js跨域是指通过js在不同的域之间进行数据传输或通信. 为什么限制跨域 为什么要有这个策略,想必你已...原创 2019-05-08 19:23:03 · 225 阅读 · 0 评论 -
echarts学习
一、echarts的x轴y轴的颜色改变:https://blog.youkuaiyun.com/wu920604/article/details/53422960原创 2018-08-09 15:07:14 · 124 阅读 · 0 评论 -
Div垂直居中
Div垂直居中 Flex 布局 不考虑兼容老式浏览器的话,用Flex布局简单直观一劳永逸:parentElement{ display:flex;/*Flex布局*/ display:-webkit-flex;/*Safari*/justify-content:center;/*要加上*//*水平居中 IE11*/ align-items:...原创 2019-05-27 22:51:37 · 208 阅读 · 0 评论 -
js获取textarea中的值
var text = document.getElementById('reviewww').innerHTML 或者jquery的 var text =$("#reviewww").val();转载 2018-09-17 11:22:40 · 22748 阅读 · 0 评论 -
HTML DOM
1.获取元素document.getElementById(elementID)http://www.runoob.com/jsref/dom-obj-document.html 2.HTML DOM addEventListener() 方法element.addEventListener(event, function, useCapture)http://www....原创 2018-09-17 10:54:57 · 120 阅读 · 0 评论 -
html5本地存储localStorage
1.存储本地存储对象:(1).字符串localStorage.setItem(key, value);例子:localStorage.setItem('visible', 'false');(2).存储对象localStorage.setItem(key, JSON.stringify(obj));获取时需要JSON.parse(jsonString)转换为对象...原创 2018-07-30 16:53:05 · 286 阅读 · 0 评论 -
Typescript error :Property 'xxx' does not exist on type 'yyy'.
问题:Typescript error :Property mozRequestFullScreen' does not exist on type 'HTMLElement'.其他类似问题:property 'xxx' does not exist on type 'yyy'解决:声明用let de : any;...原创 2018-07-31 09:04:22 · 17388 阅读 · 0 评论 -
css 伪类:after实现遮罩层
<div class="mask-zt"> <p>text</p></div>// 蒙板.mask-zt{ padding: 15px; z-index: 2; position: relative; height: 150px;}.mask-zt:after { content: "...原创 2018-07-31 09:51:49 · 8206 阅读 · 1 评论 -
html5 实现的全屏模式下的问题与解决
1.实现->点击button实现全屏模式 // 进入全屏 enterFullScreen() { let de: any; de = document.documentElement; if (de.requestFullscreen) { de.requestFullscreen(); ...原创 2018-07-31 14:46:00 · 17185 阅读 · 0 评论 -
Can't bind to 'options' since it isn't a known property of 'gridster'
问题:解决:To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';这句话一定要放在出现问题的component属于的module上才起作用...原创 2018-08-01 14:42:07 · 4302 阅读 · 0 评论 -
git ssh-keygen
ssh-keygen -t rsa -C "572464030@qq.com"原创 2018-08-06 11:45:46 · 1517 阅读 · 0 评论 -
前端开发环境搭建以及WEB插件
1. 软件安装1.1 git1.2.node1.3 VSCode2. 代码管理2.1 github -> 个人/团队https://github.com/2.2 gitlab –> 团队http://siidsv-git1/shinyo/smart-city-platform2.3 OpenProject –> 团队http://proje...原创 2018-08-06 17:11:18 · 3210 阅读 · 0 评论 -
CSS 样式资料总汇
一、左边固定,右边自适应的两栏布局https://segmentfault.com/a/1190000010698609二、div 水平垂直居中 <div class="add"> <img src="../../../assets/imgs/plus1.png" alt="智慧城市" class="center-img"&原创 2018-08-02 11:11:48 · 186 阅读 · 0 评论 -
The resource has been blocked.
问题:Failed to find a valid digest in the 'integrity' attribute for resource 'http://localhost:4200/assets/css/bootstrap.min.css' with computed SHA-256 integrity 'nvT75FkXevX06WR8vlhFFP02xzhq9qFxLQOuS...原创 2018-08-07 15:38:22 · 7708 阅读 · 0 评论 -
JavaScript日期格式化
一、 Date.prototype.format =function(format){var o = {"M+" : this.getMonth()+1, //month"d+" : this.getDate(), //day"h+" : this.getHours(), //hour"m+" : this.getMinutes(), //minute"s+" : this.g...原创 2018-08-17 09:38:08 · 6016 阅读 · 0 评论 -
绘制钟表
https://blog.youkuaiyun.com/weixin_36185028/article/details/53786993原创 2018-08-17 14:11:55 · 601 阅读 · 0 评论 -
rem与em转换为px
一、rem 单位如何转换为像素值当使用 rem 单位,他们转化为像素大小取决于页根元素的字体大小,即 html 元素的字体大小。 根元素字体大小乘以你 rem 值。 em 单位如何转换为像素值当使用em单位时,像素值将是em值乘以使用em单位的元素的字体大小。·原文链接:http://caibaojian.com/rem-vs-em.html...原创 2018-08-23 10:41:00 · 1725 阅读 · 0 评论 -
datepicker
ng-bootstrap/ng-bootstrap"”没有导出的成员“NgbDate 'NgbDateStruct' is not assignable to type 'NgbDate' error TS2339: Property 'after' does not exist on type 'NgbDateStruct'. error TS2339: Property ...原创 2018-08-28 15:27:57 · 322 阅读 · 0 评论 -
ztree-选择框
一、引入文件:jquery.ztree.excheck.js <script type="text/javascript" src="../../../js/jquery.ztree.excheck.js"></script>二、设置setting项 const setting = {// zTree 的参数配置,深入使用请参考 API 文档(s...原创 2018-09-06 10:13:38 · 724 阅读 · 0 评论 -
网页的全屏切换
// 进入全屏 enterFullScreen() { const de = document.documentElement; if (de.requestFullscreen) { de.requestFullscreen(); } else if (de.mozRequestFullScreen) { de.mozRequestFull...原创 2018-07-30 16:24:40 · 462 阅读 · 0 评论