上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 36 下一页

2020年2月21日

309 Ajax 错误处理:非200,404,500,网络中断

摘要: 07.Ajax错误处理.html 阅读全文

posted @ 2020-02-21 22:04 冲啊! 阅读(414) 评论(0) 推荐(0) 编辑

308 Ajax状态码,获取服务器端的响应的另一种方式onreadystatechange ,与onload的区别

摘要: xhr.readyState 为4, 只能说明接收完了服务器端的响应数据,但是服务器端可能响应了一个错误的数据,所以继续判断,http状态码xhr.status是200,才能说明此次请求是成功的 if (xhr.readyState 4 && xhr.status 200) { alert(xhr. 阅读全文

posted @ 2020-02-21 20:50 冲啊! 阅读(375) 评论(0) 推荐(0) 编辑

307 Ajax请求参数格式:json, x-www-form-urlencoded

摘要: 补充: (1)get请求的请求参数,以查询字符串的方式拼接在url后面; (2)传统的表单提交,表单数据以查询字符串的方式传递给send()方法。 05.向服务器端传递JSON格式的请求参数.html <!DOCTYPE html> <html lang="en"> <head> <meta cha 阅读全文

posted @ 2020-02-21 20:13 冲啊! 阅读(1061) 评论(0) 推荐(0) 编辑

306 Ajax请求参数传递

摘要: 03.传递get请求参数.html 04.传递post请求参数.html 阅读全文

posted @ 2020-02-21 17:57 冲啊! 阅读(237) 评论(0) 推荐(0) 编辑

305 Ajax服务器端响应的数据格式

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <script type="text/javascript"> // 1.创建ajax对象 va 阅读全文

posted @ 2020-02-21 15:28 冲啊! 阅读(237) 评论(0) 推荐(0) 编辑

304 Ajax 运行原理及实现

摘要: 01.Ajax入门.html app.js 阅读全文

posted @ 2020-02-21 15:22 冲啊! 阅读(134) 评论(0) 推荐(0) 编辑

303 Ajax 基础

摘要: ![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200221104722360-1609696712.png) ![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200221104813792-1386245607.png) ![](https:// 阅读全文

posted @ 2020-02-21 10:50 冲啊! 阅读(127) 评论(0) 推荐(0) 编辑

2020年2月20日

301 网络基础:ip地址,域名,DNS服务器,端口,本地hosts

摘要: ip地址 所谓IP地址就是给每个连接在互联网上的主机分配的一个32位地址,就像每个人的身份证号码一样。 通过ip就可以找到具体的某一台计算机。 例 弊端:没有规律,不方便记忆和推广 查看本机IP地址 、`ipconfig ifconfig`(linux) 两种特殊的IP地址: 127.0.0.1 作 阅读全文

posted @ 2020-02-20 16:30 冲啊! 阅读(1983) 评论(0) 推荐(0) 编辑

300 客户端、软件架构、动态网站与静态网站

摘要: 客户端 具有向服务器 索取服务 能力的终端,叫做客户端。 + 客户端:电脑、平板、手机安装了客户端软件,就可以称为客户端 + 客户端:安装客户端软件, 索取服务 的计算机 + 服务器:安装服务器软件, 提供服务 的计算机 客户端软件 对于前端工程师而言,主要接触到的客户端软件就是 浏览器 ,当然也可 阅读全文

posted @ 2020-02-20 13:20 冲啊! 阅读(225) 评论(0) 推荐(0) 编辑

299 服务器

摘要: 前言:通俗的讲,能够提供某种服务的机器(计算机)称为服务器 服务器软件 服务器软件 :使计算机具备提供某种服务能力的应用软件。 通过安装相应的服务软件,然后进行配置后,就可以使计算具备了提供某种服务的能力。 1. 按 服务类型 可分为:文件服务器、数据库服务器、邮件服务器、 ; 2. 按 操作系统 阅读全文

posted @ 2020-02-20 13:12 冲啊! 阅读(152) 评论(0) 推荐(0) 编辑

298 Function.prototype成员

摘要: arguments:获取函数的实参,已经被废弃了,现在推荐的做法是使用函数内部可用的 对象来访问函数的实参。 (废弃的意思:已经从 Web 标准中删除,虽然一些浏览器目前仍然支持它,但也许会在未来的某个时间停止支持,请尽量不要使用该特性。 ) length:获取形参的长度 name:获取函数的名字, 阅读全文

posted @ 2020-02-20 10:36 冲啊! 阅读(143) 评论(0) 推荐(0) 编辑

297 hasOwnProperty 与 in

摘要: ```html Document ``` ```html Document ``` 阅读全文

posted @ 2020-02-20 10:25 冲啊! 阅读(117) 评论(0) 推荐(0) 编辑

2020年2月19日

296 HTTP协议

摘要: js const http = require('http'); const app = http.createServer() app.on('request', (req, res) = { if(req.method === 'GET') { res.end('gett') } else if 阅读全文

posted @ 2020-02-19 21:21 冲啊! 阅读(379) 评论(0) 推荐(0) 编辑

294 服务器端基础概念,nide.js创建web服务器

摘要: nide.js创建web服务器 const http = require('http'); // 引用系统模块 const app = http.createServer(); // 创建web服务器 // 当客户端发送请求的时候 app.on('request', (req, res) => { 阅读全文

posted @ 2020-02-19 17:06 冲啊! 阅读(208) 评论(0) 推荐(0) 编辑

293 Node.js中模块的加载机制

摘要: ![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200219105735336-2035597962.png) ![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200219115220406-2071833124.png) 阅读全文

posted @ 2020-02-19 11:53 冲啊! 阅读(124) 评论(0) 推荐(0) 编辑

292 node.js 之 package.json、package-lock.json文件

摘要: package.json package lock.json文件 阅读全文

posted @ 2020-02-19 10:53 冲啊! 阅读(229) 评论(0) 推荐(0) 编辑

291 node.js第三方模块:Gulp

摘要: ![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200219101338777-908883380.png) ![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200219101425288-1515184673.png) ![](https://i 阅读全文

posted @ 2020-02-19 10:19 冲啊! 阅读(136) 评论(0) 推荐(0) 编辑

290 node.js第三方模块:npm,nodemon,nrm

摘要: ![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200219100900011-1007527462.png)![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200219100929648-974551425.png)![](https://img... 阅读全文

posted @ 2020-02-19 10:12 冲啊! 阅读(127) 评论(0) 推荐(0) 编辑

289 node.js系统模块,相对路径、绝对路径

摘要: 05.readFile.js // 1.通过模块的名字fs对模块进行引用 const fs = require('fs'); // 2.通过模块内部的readFile读取文件内容 fs.readFile('./01.helloworld.js', 'utf8', (err, doc) => { // 阅读全文

posted @ 2020-02-19 10:08 冲啊! 阅读(385) 评论(0) 推荐(0) 编辑

2020年2月17日

288 Node.js模块化开发:js开发弊端,模块的概念,模块成员导出的2种方式及其区别,模块成员导入

摘要: js const greeting = name = ; const x = 100; exports.x = x; module.exports.greeting = greeting; // 当exports对象和moudle.exports对象指向的不是同一个对象时 以module.expor 阅读全文

posted @ 2020-02-17 17:01 冲啊! 阅读(143) 评论(0) 推荐(0) 编辑

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 36 下一页

导航