Loading

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: ``` const mongoose = require('mongoose') mongoose.connect('mongodb://164.red/test', { useUnifiedTopology: true }) .then(res => console.log('数据库连接成功')) .catch(res => console.log('数据库连接失败')) // 用户集合规则 c 阅读全文
posted @ 2020-01-01 16:48 fsdffsdf 阅读(429) 评论(0) 推荐(0)
摘要: ```const mongoose = require('mongoose')mongoose.connect('mongodb://164.red/test', { useUnifiedTopology: true }) .then(res => console.log('数据库连接成功')) .catch(res => console.log('数据库连接失败'))// 定义集合并... 阅读全文
posted @ 2020-01-01 16:27 fsdffsdf 阅读(712) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-01-01 15:44 fsdffsdf 阅读(179) 评论(0) 推荐(0)
摘要: Invalid Host header 当启动了sunny ngrok的客户端以后, 就这个用sunny ngrok提供的域名, 来访问本地的127.0.0.0:8080(端口自己设置), 如果Vue项目启动, 外网就可以通过域名来访问Vue项目. 但是如果出现 Invalid Host heade 阅读全文
posted @ 2019-12-30 15:28 fsdffsdf 阅读(410) 评论(0) 推荐(0)
摘要: ``` // file system 是node的文件处理模块 const fs = require('fs') const path = require('path') // 1. readFile 此函数用来异步读取文件,并在回调中可以获取读取文件结果 // 这个方法会将一个文件的全部内容都读到内存中,适合于体积小的文本,如果文件有数百MB大小,则建议使用stream let filePath 阅读全文
posted @ 2019-12-22 11:22 fsdffsdf 阅读(366) 评论(0) 推荐(0)
摘要: 在做微信公众平台网页授权时,发现每次请求授权链接 https://open.weixin.qq.com/connect/oauth2/authorize?appid=xxx&redirect_uri=xxx&response_type=code&scope=snsapi_userinfo&state 阅读全文
posted @ 2019-12-06 22:53 fsdffsdf 阅读(3959) 评论(0) 推荐(0)
摘要: 在vue中使用nprogress.js 安装 $ bower install save nprogress $ npm install save nprogress 1 2 在项目中引入 在main.js中引入要使用的nprogress import NProgress from 'nprogres 阅读全文
posted @ 2019-12-06 22:17 fsdffsdf 阅读(1195) 评论(0) 推荐(0)
摘要: //设置页面字体 window.addEventListener('DOMContentLoaded', () = { const html = document.querySelector('html'); let size = window.innerWidth / 10; size = siz 阅读全文
posted @ 2019-12-06 22:03 fsdffsdf 阅读(141) 评论(0) 推荐(0)
摘要: 采用的方法(强制覆盖本地数据): git fetch origin git clean f git reset hard origin/master 阅读全文
posted @ 2019-12-06 21:40 fsdffsdf 阅读(572) 评论(0) 推荐(0)
摘要: let time = new Date().getTime() function onBridgeReady () { WeixinJSBridge.invoke( 'getBrandWCPayRequest', { "appId": res1.data.appId, //公众号名称,由商户传入 " 阅读全文
posted @ 2019-12-06 09:04 fsdffsdf 阅读(2187) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页