摘要: js七种内置类型: 1.空值(null) 2.未定义(undefined) 3.布尔值(boolean) 4.数值(number) 5.字符串(string) 6.对象(object) 7.符号(symbol) 除对象之外,其他对象统称为 "基本类型" typeof运算符来查看值的类型返回的是类型的 阅读全文
posted @ 2020-01-06 16:56 孟小孩 阅读(96) 评论(0) 推荐(0) 编辑
摘要: class 语法糖 class 本身就是函数 class MathHandle(){ constructor(x,y){ this.x = x this.y = y } add(){ return this.x+this.y } } const m = new MathHandle(1,2) con 阅读全文
posted @ 2020-01-06 13:33 孟小孩 阅读(88) 评论(0) 推荐(0) 编辑
摘要: es6 模块化 如果 输出的时候是export default 时候倒入 import 对象名 from 路径 即可, 如果有多个export变量,import { fun1,fun2} from 路径 搭建开发环境: 1. npm init 2. npm install --save-dev ba 阅读全文
posted @ 2020-01-06 11:19 孟小孩 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 3.flex布局 (1)左中右三等分: 给父元素添加display:flex (2)左右布局,一侧定宽,一侧自适应撑满 align-items:item在纵轴上的对齐方式:属性如下图: https://www.cnblogs.com/yangguoe/p/9969140.html 阅读全文
posted @ 2019-07-14 21:52 孟小孩 阅读(2196) 评论(0) 推荐(0) 编辑
摘要: 1.如何解决跨域的问题: 跨域:协议、域名、端口号都相同,只要有一个不相同,那么都是非同源。 同源策略限制情况: 1.cookie,localStorage 和 IndexDB 无法读取 2.DOM 和 JS对象无法获得 3.AJAX请求不能发送 注意:对于像 img、iframe、script 等 阅读全文
posted @ 2019-07-13 23:58 孟小孩 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 1.安装npm install --save @angular/material@2.0.0-beta.72.安装http://chrome-extension-downloader.com安装augury elgalmkoelokbchkhacckoklkejinhcd angurtid 3.np 阅读全文
posted @ 2019-04-12 21:17 孟小孩 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1.安装core ,shared模块 ng g m core ng g m shared 2.在shared中导入core模块 core模块只加载一次所以将公共组件放到core中 3.创建公共组件: ng g c core/header --spec=false 创建header组件,并且不使用测试 阅读全文
posted @ 2019-04-02 06:36 孟小孩 阅读(139) 评论(0) 推荐(0) 编辑
摘要: angular环境的搭建项目结构整理 阅读全文
posted @ 2019-03-23 13:17 孟小孩 阅读(181) 评论(1) 推荐(0) 编辑
摘要: 一般setData方法多用于点击后改变页面信息或者刷新后与后台交互获取最新的信息 注意: 微信小程序flex布局: <view class="flex-wrp" style="flex-direction:row; display: flex;"> <view class="flex-item" s 阅读全文
posted @ 2019-02-27 22:52 孟小孩 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 5.css盒模型: 阅读全文
posted @ 2019-02-26 12:15 孟小孩 阅读(77) 评论(0) 推荐(0) 编辑