摘要:
3.1 axios && fetch 目的: 是在框架中使用数据请求 回顾: 封装ajax jquery 【 $$.get $$ .post $$.ajax $$ .load 】 jquery 【 $$.get $$ .post $$.ajax $$ .load 】 框架: 数据请求 使用原生js提 阅读全文
摘要:
2.3 条件渲染 v-if v-else-if v-else v-show 条件展示 <h3> 条件渲染 - 单路分支 </h3> <p v-if = "flag"> A </p> <h3> 条件渲染 - 双路分支 </h3> <p v-if = "flag"> A </p> <p v-el 阅读全文
摘要:
模板语法 mustache 语法中是支持写js的 用法: 内容: 必须加 {{ js语法 }} 属性: 属性中属性值可以直接写js语法,并且属性值中的数据相当于全局变量 给一个标签加一个自定义属性/已有属性 img中的src就是已有属性<img src = "" /> //data-index就是 阅读全文
摘要:
MongoDB安装测试和简单使用 1.先安装MongoDB 2.以管理员身份运行**cmd.exe,**进入dos命令界面,执行下列命令 > mongod --storageEngine mmapv1 --dbpath "d:\mongodb\db" --logpath "d:\mongodb\lo 阅读全文
摘要:
const zlib = require( 'zlib' ) // zlib是一个压缩包的内置模块 const fs = require( 'fs' ) // fs是文件系统 // const in = fs.createReadStream(文件路径) const inp = fs.createR 阅读全文