上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: ES5新增部分var arr = [10, 20, 40, 50];arr.forEach(function(item, index, arr) {console.log(index, item);console.log(arr); });//去重——集合、流等采用数组,IT领域也是不断完善理论罢了,其实质就是操作数组,增加方法——close()\append()//所以:各个领域的... 阅读全文
posted @ 2020-06-05 07:26 小海_macro 阅读(197) 评论(0) 推荐(0) 编辑
摘要: var c;console.log(c); //一个变量未定义,值 undefinedconsole.log(typeof c); //未赋值 类型 undefinedvar d = null;console.log("d:"+d); //值:nullconsole.log(typeof d); //类型:object//+ 当有字符串参与 表示字符串拼接console.log(10 + ... 阅读全文
posted @ 2020-06-04 18:02 小海_macro 阅读(179) 评论(0) 推荐(0) 编辑
摘要: ## 函数定义方式 - function XX(){ } - 函数表达式(匿名函数) var fn = function(){} - new function() var func = new Function('a', 'b', 'console.log(a + b)'); func(3, 6); func.__pr... 阅读全文
posted @ 2020-06-04 17:56 小海_macro 阅读(144) 评论(0) 推荐(0) 编辑
摘要: node : js运行时环境 浏览器js ES+DOM+BOM node ES+核心模块:创建服务器、fs文件操作模块【加分项】node可以做什么事情?——流操作,ajax,express,buffer 1 创建高性能的服务器————单线程 2 工具 3 中间件 4 ??脚手架 5 -跨越问题:node之间通信 ... 阅读全文
posted @ 2020-06-04 17:13 小海_macro 阅读(161) 评论(0) 推荐(0) 编辑
摘要: mysql\mongodb\redis1 数据库 持久化数据Mongodb:json形式存储安装必要的软件:mongodb + compass database mongodb软件可以创建多个数据库 collection 集合 一组数据 document 文档 一条数据 json field 字段 文档属性 数据导入数据... 阅读全文
posted @ 2020-06-04 12:28 小海_macro 阅读(130) 评论(0) 推荐(0) 编辑
摘要: # express## 简介 web开发应用## 下载 npm install express ## 中间件 中间件方法和请求处理函数 app.get('请求路径','处理函数'); app.post('请求路径','处理函数');## 处理get请求参数 req.query## 处理post请求参数 使用中间件 body-parser 通过... 阅读全文
posted @ 2020-06-04 11:45 小海_macro 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 基础插件应用const path = require('path');const fs = require('fs');const url = require('url');const http = require('http');const mime = require('mime');=========================创建服务器const app = http.createSe... 阅读全文
posted @ 2020-06-04 09:18 小海_macro 阅读(576) 评论(0) 推荐(0) 编辑
摘要: npm 1 概述 node package manager 包 多个文件的集合 2 包的分类 全局包 在命令行使用 (1) 安装:npm install *** -g (2) 自己创建全局包 本地包 在项目中使用 (1) 生产环境中 (2... 阅读全文
posted @ 2020-06-04 06:42 小海_macro 阅读(168) 评论(0) 推荐(0) 编辑
摘要: NodeJS整理客户端服务器端 处理数据和业务逻辑 请求客户端---------------------->服务器端 --->DTD 文档类型声明 h5 ---> --->字符集 ---> Document --->网页标题 this is a first ... 阅读全文
posted @ 2020-06-03 20:45 小海_macro 阅读(261) 评论(0) 推荐(0) 编辑
摘要: js 运行时浏览器js ES+DOM+BOMnode ES+核心模块node可以做什么事情? 创建高性能的服务器 工具 中间件用途:接口服务器 vue\react进程和线程 进程>线程 进程表示一个程序,一个进程可以有多个线程 -node适合I/O密集,不适合CPU密集(压缩、合并、加密解密){银行、证券等要求稳定,不会选择node;但是如果是操作... 阅读全文
posted @ 2020-06-02 17:36 小海_macro 阅读(165) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页