摘要: 通过ajax传输,跨域不能使用 dataType: 'jsonp',不然后端无法获取文件,用 jsonp: 'callback' 阅读全文
posted @ 2018-03-21 18:42 梦涂 阅读(1521) 评论(0) 推荐(0) 编辑
摘要: Ctrl+Shift+I:进入检查 Ctrl+Shift+F:搜索(第一个选项:忽略大小写;第二个选项:正则表达式) Ctrl+Shift+J:进入console Shift+Enter:在console中换行 Ctrl+L:清空console(也可以直接点击) Ctrl+F:在当前页面开启搜索 阅读全文
posted @ 2017-07-21 16:24 梦涂 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1.instanceof var arr = [1, 2, 3]; var obj = { name: 'mt', age: 6 } console.log(arr instanceof Array); //true console.log(obj instanceof Array); //fals 阅读全文
posted @ 2017-07-17 14:00 梦涂 阅读(255) 评论(1) 推荐(0) 编辑
摘要: 路由: 调用路由模块 import { NgModule } from '@angular/core';import { RouterModule, Routes } from '@angular/router'; 设置子路由 { path: 'home', component: HomeCompo 阅读全文
posted @ 2017-06-05 18:21 梦涂 阅读(376) 评论(1) 推荐(0) 编辑