上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: 1:轮播图组件 <swiper indicator-dots='true' indicator-color='deepPink'> 2:模板定义和使用(定义,传值) 定义模板: name=‘模板名字’ <template name='listTemplate'> 使用模板:<importsrc=". 阅读全文
posted @ 2018-12-03 10:32 INSTANCE_SELF 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 1:flex弹性布局(容器的属性) flex-direction flex-wrap flex-flow justify-content(主轴的对齐方式) align-items align-items属性定义项目在交叉轴上如何对齐。 align-content align-content属性定义了 阅读全文
posted @ 2018-12-03 10:31 INSTANCE_SELF 阅读(176) 评论(0) 推荐(0) 编辑
摘要: (1) 小程序没有DOM对象,一切基于组件化 小程序的四个重要的文件 a. *.js b. *.wxml > view结构 > html c. *.wxss > view样式 > css d. *. json > view 数据 > json文件 (2)储备知识 a. 理解事件机制 b. 理解组件化 阅读全文
posted @ 2018-12-03 10:31 INSTANCE_SELF 阅读(722) 评论(0) 推荐(1) 编辑
摘要: var mongoose = require("mongoose"); mongoose.connect("mongodb://127.0.0.1/mongoose_test",{useMongoClient:true}); mongoose.connection.once("open",function () { console.log("数据库连接成功~~~"); }); var Sch... 阅读全文
posted @ 2018-11-18 14:16 INSTANCE_SELF 阅读(455) 评论(0) 推荐(0) 编辑
摘要: /*(一)连接数据库 1.下载安装Mongoose npm i mongoose --save 2.在项目中引入mongoose var mongoose = require("mongoose"); 3.连接MongoDB数据库 mongoose.connect('mongodb://数据库的ip 阅读全文
posted @ 2018-11-18 14:15 INSTANCE_SELF 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 题目: 1.进入my_test数据库 use my_test 2.向数据库的user集合中插入一个文档 db.user.insert({username:"sunwukong"}) 3.查询user集合中的文档 db.user.find() 4.向数据库的user集合中插入一个文档 db.user. 阅读全文
posted @ 2018-11-17 18:02 INSTANCE_SELF 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 1:文件系统(File System) - Buffer(缓冲区) - Buffer和数组的结构的非常类似,Buffer是用来存储二进制数据的 - Buffer的方法 - Buffer.from(字符串) - 将一个字符串中内容保存到一个buffer中 - buf.toString() - 将buf 阅读全文
posted @ 2018-11-16 20:57 INSTANCE_SELF 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1:- node是一款对ES标准实现的JS引擎 - 通过node可以使js在服务器中运行 - node就是一款使用js编写的web服务器 - node底层是使用c++的编写的 - node的中js引擎使用的chrome的v8引擎 - node的特点: 1.非阻塞、异步的I/O 2.事件和回调函数 3 阅读全文
posted @ 2018-11-16 20:56 INSTANCE_SELF 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 2:MongoDB CURD - MongoDB是一个NoSQL的数据库 - MongoDB是一款文档型数据库 - 数据库指的就是一个存储数据的仓库 数据库可以使我们完成对数据的持久化的操作 - MongoDB数据库中存储的数据的基本单位就是文档, MongoDB中存储的就是文档,所谓文档其实就是一 阅读全文
posted @ 2018-11-16 20:54 INSTANCE_SELF 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1.安装MongoDB(官网) - 安装 - 配置环境变量 C:\Program Files\MongoDB\Server\3.2\bin //自己安装的目录 - 在c盘根目录 - 创建一个文件夹 data - 在data中创建一个文件夹db //使用可视化工具 这是默认数据库的位置 - 打开cmd 阅读全文
posted @ 2018-11-16 20:52 INSTANCE_SELF 阅读(301) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页