摘要:
通过ajax传输,跨域不能使用 dataType: 'jsonp',不然后端无法获取文件,用 jsonp: 'callback' 阅读全文
摘要:
Ctrl+Shift+I:进入检查 Ctrl+Shift+F:搜索(第一个选项:忽略大小写;第二个选项:正则表达式) Ctrl+Shift+J:进入console Shift+Enter:在console中换行 Ctrl+L:清空console(也可以直接点击) Ctrl+F:在当前页面开启搜索 阅读全文
摘要:
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 阅读全文
摘要:
路由: 调用路由模块 import { NgModule } from '@angular/core';import { RouterModule, Routes } from '@angular/router'; 设置子路由 { path: 'home', component: HomeCompo 阅读全文