随笔分类 -  NodeJS

摘要://了不了解node.js nodejs不是前端的必备知识体系 它是一个加分项 前端层面的node掌握包管理使用 commonjs模块化语法 const http =require('http')//引入搭建服务器的核心模块http const server = http.createServer( 阅读全文
posted @ 2021-11-26 12:00 七友の 阅读(40) 评论(0) 推荐(0)
摘要:- let xhr = new XMLHttpRequest() - xhr.onreadystatechange=function(){ if(xhr.readystate 4&&xhr.status 200){ console.log(xhr.response) } } - xhr.open(请 阅读全文
posted @ 2021-11-24 11:20 七友の 阅读(21) 评论(0) 推荐(0)