摘要:
@NgModule 的使用方式看一个最简单的 @NgModule 的定义: import { BrowserModule } from '@angular/platform-browser';import { NgModule } from '@angular/core'; import { App 阅读全文
摘要:
知识点2021/1/28 表达式{{}} 语句;一定有返回值 指令ng- 阅读全文
摘要:
1.时间戳格式转化 formatDateTime(new Date(这里输入时间戳)); var formatDateTime = function (date) { var y = date.getFullYear(); var m = date.getMonth() + 1; m = m < 1 阅读全文
摘要:
一、什么是 Cookie 和 Session ?初级程序员高频面试题。什么是 Cookie? HTTP Cookie(也叫 Web Cookie或浏览器 Cookie)是服务器发送到用户浏览器并保存在本地的一小块数据,它会在浏览器下次向同一服务器再发起请求时被携带并发送到服务器上。通常,它用于告知服 阅读全文
摘要:
解决跨域请求的常用方法是: 通过代理来避免,比如使用 Nginx 在后端转发请求,避免了前端出现跨域的问题。 通过 Jsonp 跨域 其它跨域解决方案 阅读全文
摘要:
dataV项目 页面dispatch方法名 this.$store .dispatch("getDatavList", this.orderType) //res就是返回的数据 .then(res => { }) .catch(error => {}); action。js中//定义action / 阅读全文
摘要:
测试方案、测试用例、测试报告、数据字典、代码测试、需求说明书、设计说明书、集成实施方案、用户手册、运维手册 阅读全文
摘要:
querySelector() 方法返回匹配指定 CSS 选择器元素的第一个子元素 。 querySelectorAll() 方法返回文档中匹配指定 CSS 选择器的所有元素 var x = document.getElementById("myDIV"); x.querySelector(".de 阅读全文
摘要:
1.将字体文件(后缀.ttf)考到项目中。2.css @font-face { font-style: normal; font-family: DS-Digital; src: url("../images/DS-DIGIB.TTF");}div{ font-family: DS-Digital; 阅读全文
摘要:
css ul{ width: auto; height: 100px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); } html: <ul> <li>1</li><li>2</li><li>2</ 阅读全文