摘要: 模块化 模块内容 let obj = { name: "lusy", hello:function(){ console.log("你好你好!") } } //抛出一个模块 module.exports = obj; let obj = { name: "lusy", hello:function( 阅读全文
posted @ 2019-02-24 20:05 喵喵66 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 安装 注意事项 在`Mongodb`官网下载最新版本的[Mongodb下载地址](https://cloud.mongodb.com/) 下载`msi`的`window`安装包,可以装到C盘或者D盘目录下 > 由于我是安装在D盘的环境下 > > ```shell > D:\Program Files 阅读全文
posted @ 2019-02-22 23:07 喵喵66 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 客户端 html结构 <input type="text"> <button onclick="sendServer()">send</button> js代码 const ws = new WebSocket('ws://localhost:8080/')// 参数是要连接的服务器地址 // 已经 阅读全文
posted @ 2019-02-21 12:23 喵喵66 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: 1、搭建一个node服务器 http.createServer() 2、引入需要的node内置模块 通过 req.url 得到请求 得到当前请求 url.query 判断是什么请求(登录 ? 注册?) url.pathname 注:此时的url是对象的格式 使用 url.pathname 需将字符串 阅读全文
posted @ 2019-02-20 13:00 喵喵66 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 思想: 首先需要有后台数据库及数据表(mysql) 比如数据库的名字叫1823test 数据表叫0109list 一,注册 前端部分 html结构 结构自己根据需求而定 记得向后台提交信息时 一定要添加上 name 属性 js结构 后端部分 <?php header("Content-Type: t 阅读全文
posted @ 2019-02-17 20:49 喵喵66 阅读(555) 评论(0) 推荐(0) 编辑