- 博客(5)
- 收藏
- 关注
原创 个人博客 hexo框架教程
创建个人博客 hexo框架教程环境配置: 首先要先安装 node.js 和 git 这两个必须要有,否则无法实现操作// 这些都是在 node.js 里面操作的// 全局安装 hexo框架npm i -g hexo -cli// 查看 hexo 版本号hexo -v// 初始化 hexo博客hexo init// 在本地预览 http://localhost:4000// ...
2020-04-15 19:46:24 136
原创 创建 web 服务器 基础教程
创建web服务器 重点node.js 创建服务器// 引用系统模块 const http = require('http'); // 创建web服务器 const app = http.createServer(); // 当客户端发送请求的时候 添加事件 app.on('request', (req, res) => { // 响应 r...
2020-04-13 19:46:45 252
原创 $.ajax方法基本使用(很重要)
$.ajax方法基本使用Ajax 的运行环境: Ajax 技术需要运行在网站服务器环境中才能生效,当前课程会使用 Node 创建的服务器作为网站服务器<button id="btn">发送请求</button> <script src="/js/jquery.min.js"></script> <script> $('#btn...
2020-04-13 19:31:27 645
原创 AJAX 的使用步骤
实现步骤// Step1: 创建一个 AJAX 对象let xhr = new XMLHttpRequest();// Step2: 配置信息,请求类型和请求地址xhr.open('GET', 'http://localhost:3000/first');// Step3: 发送请求xhr.send();// Step4: 拿到响应结果xhr.onload = function (...
2020-04-13 11:05:59 784
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人