上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页
摘要: resolve(解决守卫) 保证了数据获取后在进行路由跳转,防止因为数据延迟而出现的空组件情况 简单的理解成解决延迟守卫 ##创建一个接口 product/product.ts ng g i product/product.ts export interface Product { id: numb 阅读全文
posted @ 2020-07-13 13:39 猫神甜辣酱 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 简单说的一些,我的所有文章基本都是个人的差缺补漏,学习的本身本来就是查缺补漏的,其中大量的时间都是花在看资料,吸收一下有价值的东西,然后我会把一些有价值的东西提取出来,只求有生之年能成为大佬 创建模块 ng g m homes --route home --module app 创建一个模块,在根模 阅读全文
posted @ 2020-07-08 16:11 猫神甜辣酱 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 默认把styleExt改成less或者scss { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { " 阅读全文
posted @ 2020-07-06 11:50 猫神甜辣酱 阅读(572) 评论(0) 推荐(0) 编辑
摘要: pug 简介 简单理解就是类似less或者scss预编译器,只是他把pug=>html 为什么要介绍这个,我用html不行吗 问就是骚,太骚了,最近看到大佬的代码太简洁了,其实我在18年年初写过一篇,链接, 太浅薄了,不够深刻,准备重新写一篇,不求精通,但求能深入理解内涵 语法篇 Attribute 阅读全文
posted @ 2020-07-02 11:15 猫神甜辣酱 阅读(801) 评论(0) 推荐(0) 编辑
摘要: 资料 https://github.com/rough-stuff/rough-notation annotation 这个对象 isShowing() 判断目前显示还是隐藏 Boolean show() 显示,展示动画 hide() 隐藏,这不是动画 remove() 删除跟dom的联系 确定的东 阅读全文
posted @ 2020-06-30 15:41 猫神甜辣酱 阅读(197) 评论(0) 推荐(0) 编辑
摘要: pop,shift 细节问题 如果本来是一个空数组,删除后,返回值为undefined let a=[] a.shift() //undefined css渐变显示 递归 const rangOf = (a, b) => { if (a b) { return [a] } else { let nu 阅读全文
posted @ 2020-06-29 17:39 猫神甜辣酱 阅读(386) 评论(0) 推荐(1) 编辑
摘要: 参考资料 https://www.freecodecamp.org/news/ https://kb.kutu66.com/tag/javascript https://t.codebug.vip/ https://javascript-conference.com/blog/ https://ww 阅读全文
posted @ 2020-06-28 17:46 猫神甜辣酱 阅读(1679) 评论(0) 推荐(0) 编辑
摘要: 类型限制在数组里面写函数 export interface Plugin { extraReducers?: () => { [name: string]: (stare: any, ...payload: any) => void } } const plugins: Plugin[] = [ { 阅读全文
posted @ 2020-06-22 16:28 猫神甜辣酱 阅读(648) 评论(0) 推荐(1) 编辑
摘要: typescript 差缺补漏 资料 交叉点类型 交集类型是将多个类型组合为一种的方法,就是多个类型的合并 type LeftType = { id: number left: string } type RightType = { id: number right: string } type I 阅读全文
posted @ 2020-06-18 12:20 猫神甜辣酱 阅读(606) 评论(0) 推荐(0) 编辑
摘要: from 表单特殊的点 formData1 = new FormGroup({ firstName: new FormControl("Kevin"), lastName: new FormControl("Yang"), }); console.log(formData1.value); // { 阅读全文
posted @ 2020-06-17 00:31 猫神甜辣酱 阅读(678) 评论(0) 推荐(2) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页