甜甜和康康的爸爸

金猴奋起千钧棒,玉宇澄清万里埃


  • 首页

  • 关于

  • 标签

  • 分类

  • 文章

  • 公益

vue 部署到阿里云

Posted on 2019-03-07 | In 少壮不努力,长大做IT | Visitors:
xshell 和 xftp 配合比较好用xshell用于敲命令xftp用于传文件和找文件网上的免费百度云下载:https://pan.baidu.com/s/1OlBSYFjdk9oDXot_V9VZUg 自用,公司用还请买正版 以下文件在 /etc/nginx/nginx.conf 内,使用 xftp 下载到桌面后修改,再传回去server { listen 80; // 自定义端口 server_name 120.79.208.206; // ip地址 root /var/www/vuemusic; // 目录,随便什么都行 # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { root /var/www/vuemusic; // 目录 index index.html; // index. ...
Read more »

Bmob where 语句(MongoDb)

Posted on 2019-03-02 | In 少壮不努力,长大做IT | Visitors:
后台条件语法:或语法where:{“$or”:[{“a”:”ax”},{“b”:”bx”}]} 与语法where:{“$and”:[{“a”:”ax”},{“b”:”bx”}]} Key Operation$lt 小于$lte 小于等于$gt 大于$gte 大于等于$ne 不等于$in 包含在数组中$nin 不包含在数组中$exists 这个 Key 有值$select 匹配另一个查询的返回值$dontSelect 排除另一个查询的返回$all 包括所有给定的值$regex 匹配PCRE表达式 大于等于1000且小于等于3000(示例)where:{“score”:{“$gte”:1000,”$lte”:3000}}
Read more »

Bmob 邮箱模块 发送邮件

Posted on 2019-03-02 | In 少壮不努力,长大做IT | Visitors:
Bmob 云函数发送邮件到指定邮箱,使用 oMail模块。官方文档更新不及时,以下可使用1234567891011121314151617181920212223242526272829function onRequest(request, response, modules) { //获得发送邮件的对象 var mailer = modules.oMail; //设置发送服务器信息 var smtpTransport = mailer.createTransport({ service: "qq" , auth: { user: "*******@qq.com", // qq邮箱 pass: "*********" // qq邮箱后台开通SMTP时系统分配的鉴权码 } }); smtpTransport.sendMail({ ...
Read more »

Node.js Express request 和 response常用返回

Posted on 2019-02-24 | In 少壮不努力,长大做IT | Visitors:
请求和响应Express 应用使用回调函数的参数: request 和 response 对象来处理请求和响应的数据。 app.get(‘/‘, function (req, res) { // –}) request 和 response 对象的具体介绍:Request 对象 - request 对象表示 HTTP 请求,包含了请求查询字符串,参数,内容,HTTP 头部等属性。常见属性有:req.app:当callback为外部文件时,用req.app访问express的实例req.baseUrl:获取路由当前安装的URL路径 req.body / req.cookies:获得「请求主体」/ Cookiesreq.fresh / req.stale:判断请求是否还「新鲜」req.hostname / req.ip:获取主机名和IP地址req.originalUrl:获取原始请求URLreq.params:获取路由的parametersreq.path:获取请求路径req.protocol:获取协议类型req.query:获取URL的查询参数串req.route:获取当前匹配的路 ...
Read more »

易联云打印机

Posted on 2019-02-15 | In 少壮不努力,长大做IT | Visitors:
开发办法:(只要传入content即可,换行使用\n)如以下代码上传至服务器 qh.leanapp.cn/index.php,则客户端(如微信小程序)使用post时地址为以下即可 小程序端代码如下: 12345678910wx.request({ url: 'https://qh.leanapp.cn/index.php', data: { context: "你好啊\n第二行", }, method: 'POST', header: { 'content-type': 'application/x-www-form-urlencoded' },} 服务器端代码如下: <?php /** * 打印接口 * function action_print($partner,$m ...
Read more »

安装hexo

Posted on 2019-02-15 | In 少壮不努力,长大做IT | Visitors:
第一步$ npm install hexo-cli -g第二步$ hexo init blog第三步$ cd blog第四步$ npm install第五步$ hexo server第六步 下载皮肤$ git clone https://github.com/iissnan/hexo-theme-next themes/next #安装next主题第七步$ hexo clean #保险起见,先清一次第八步$ hexo s
Read more »

VUE 上传到 github pages

Posted on 2019-02-15 | In 少壮不努力,长大做IT | Visitors:
将config文件夹下的index.js文件中build的assetsPublicPath属性改为./(注意不要改成dev的路径) npm run build 把dist文件夹里的东西单独拷出来新建一个文件夹 将该文件夹中的内容上传到github的一个仓库中,此时仓库目录index.html在根目录上传方法如下: 1)先进入项目文件夹,通过命令 git init 把这个目录变成git可以管理的仓库git init 2)把文件添加到版本库中,使用命令 git add .添加到暂存区里面去,不要忘记后面的小数点“.”,意思为添加文件夹下的所有文件git add . 3)用命令 git commit告诉Git,把文件提交到仓库。引号内为提交说明。git commit -m 'message' 4)关联到远程库。git remote add origin 你的远程库地(如:https://github.com/Aaron0525/Vue-juejin-App.git) 实际为 git remote add origin https://github.com/qiuh ...
Read more »

Hexo常规命令

Posted on 2019-02-10 | In 少壮不努力,长大做IT | Visitors:
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
Read more »
12
JayJay

JayJay

18 posts
1 categories
11 tags
GitHub E-Mail Google Instagram
© 2018 — 2019 JayJay
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4