会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
武卡卡的个人博客
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
24
25
···
39
下一页
2019年11月17日
Vuex - state , getters , mutations , actions , modules 的使用
摘要: 1, 安装 vue add vuex 2, 安装完之后会自动生成store文件夹,并在main.js中自动引用 store/index.js 3,在store文件夹下的index.js中定义 import Vue from 'vue' import Vuex from 'vuex' Vue.use(
阅读全文
posted @ 2019-11-17 14:32 武卡卡
阅读(736)
评论(0)
推荐(1)
2019年11月8日
express 配置 https 服务 ( 以阿里云服务器为例), 探索一周终于搞定
摘要: 首先最重要的是 你要明白 https接口的接收或者发送 的形式 是 https://域名:端口号 而不是 https://ip:端口号 一,首先,去阿里云注册免费ssl证书 1,在搜索框中输入关键字证书,点击SSL证书 2,点击购买证书 3,选择免费型,点击购买 4,点击支付 5,点击确认支付 6,
阅读全文
posted @ 2019-11-08 15:39 武卡卡
阅读(1618)
评论(0)
推荐(0)
2019年11月7日
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 的解决办法
摘要: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
阅读全文
posted @ 2019-11-07 14:11 武卡卡
阅读(5587)
评论(0)
推荐(0)
2019年11月6日
nodejs配置 https服务
摘要: const port = normalizePort(process.env.PORT || '3000'); const path = require('path'); const https = require('https'); const fs = require('fs'); const
阅读全文
posted @ 2019-11-06 15:19 武卡卡
阅读(2488)
评论(0)
推荐(0)
2019年11月5日
卸载重装ngin的问题解决方案
摘要: 1,卸载nginx不保留配置文件 $ sudo apt-get --purge remove nginx 2,卸载自动安装且不再需要的依赖包 $ sudo apt-get autoremove 3,卸载nginx-common不保留配置文件 $ sudo apt-get --purge remove
阅读全文
posted @ 2019-11-05 15:03 武卡卡
阅读(382)
评论(0)
推荐(0)
2019年11月4日
mongodb- 备份和导入备份
摘要: 一、使用 mongodump 命令备份数据 mongodump -h IP --port 端口 -u 用户名 -p 密码 -d 数据库 -c 表 -o 文件存放路径 参数说明: -h 指明数据库宿主机的IP --port 指明数据库的端口 -u 指明数据库的用户名 -p 指明数据库的密码 -d 指明
阅读全文
posted @ 2019-11-04 16:11 武卡卡
阅读(216)
评论(0)
推荐(0)
2019年11月3日
VUE - mapState 辅助函数(简化)
摘要: 1,第一种 <template> <div id="app"> <p> {{count}} </p> <p> {{todos}} </p> </div> </template> <script> import {mapState} from 'vuex' export default { name:
阅读全文
posted @ 2019-11-03 14:41 武卡卡
阅读(210)
评论(0)
推荐(0)
VUE - vuex state的使用
摘要: 1,安装 进入项目目录,执行 vue add vuex 命令 2,会在src的目录下新增store文件夹 3,打开store文件夹下的index.js , 给 state 设定一些数据 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vue
阅读全文
posted @ 2019-11-03 08:04 武卡卡
阅读(1810)
评论(0)
推荐(0)
2019年11月2日
node - 处理跨域 ( 两行代码解决 )
摘要: 1,安装 cors 模块 : npm install cors 2,代码 : var express = require('express') var app = express() var cors = require('cors') app.use(cors()) 即可解决跨域问题 。(http
阅读全文
posted @ 2019-11-02 15:47 武卡卡
阅读(1493)
评论(0)
推荐(1)
JS+ES6 - 向数组的开头添加一个或更多元素
摘要:
阅读全文
posted @ 2019-11-02 14:23 武卡卡
阅读(4754)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
22
23
24
25
···
39
下一页
公告