this.wxInfo.redirect_uri = encodeURIComponent(window.location.href); var h = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + this.wxInf ...
分类:
微信 时间:
2020-06-30 17:39:40
阅读次数:
150
1 from pyquery import PyQuery as pq 2 import requests as rs 3 from docx import Document 4 from docx.shared import RGBColor 5 6 7 html = ''' 8 https:// ...
分类:
Web程序 时间:
2020-06-30 17:15:14
阅读次数:
117
location / { root /Users/heyang/Desktop/web/static; index index.html index.htm; try_files $uri $uri/ /index.html; } ...
分类:
其他好文 时间:
2020-06-30 17:12:37
阅读次数:
64
一般来说,消息队列有两种场景,一种是发布者订阅者模式,一种是生产者消费者模式。利用redis这两种场景的消息队列都能够实现。 定义: 生产者消费者模式:生产者生产消息放到队列里,多个消费者同时监听队列,谁先抢到消息谁就会从队列中取走消息;即对于每个消息只能被最多一个消费者拥有。 发布者订阅者模式:发 ...
分类:
其他好文 时间:
2020-06-30 17:09:14
阅读次数:
106
功能 库名 介绍 系统监控 nodemon Nodemon是一个实用程序,可以监视源代码中的任何更改并自动重新启动服务器。非常适合开发。 系统进程 execa execa是更好的子进程管理工具(A better child_process)。本质上就是衍生一个 shell,传入的 command 字 ...
分类:
Web程序 时间:
2020-06-30 14:53:10
阅读次数:
144
electron的安装与应用 官方文档 https://www.electronjs.org/docs npm安装electron,为了快速安装,使用淘宝源镜像 npm init npm install electron --save-dev --registry=https://registry. ...
分类:
其他好文 时间:
2020-06-30 13:14:13
阅读次数:
72
java.lang.NoSuchMethodError,想必 Java的开发者都遇到过这个报错吧,这个错误基本上都是由JVM 的 “全网负责委托机制”,(全网负责委托机制是啥? 》》 https://cloud.tencent.com/developer/article/1353281) 引发的问题 ...
分类:
编程语言 时间:
2020-06-30 12:45:02
阅读次数:
60
1.定义bash环境的用户配置文件是(2分) D - A. bash & .bashrc - B. bashrc & .bash_conf - C. bashrc & bash_profile - D. .bashrc & .bash_profile 2.使用下面的哪条命令可以为文件建立一个软连接( ...
分类:
系统相关 时间:
2020-06-30 12:38:04
阅读次数:
183
Linux下获取CPU内存信息的命令 1. 获取CPU型号信息 cat /proc/cpuinfo | grep name | cut -f2 -d: |uniq -c 2.获取CPU的个数(几核CPU) grep 'physical id' /proc/cpuinfo | sort | uniq ...
分类:
系统相关 时间:
2020-06-30 12:36:40
阅读次数:
112
删除虚拟机 virsh list virsh list virsh destroy vm4强制停止虚拟机 virsh undefine vm4 删除虚拟机 更新当前文件,并查找包含虚拟机vm4的所有内容 删除和vm4一切相关的内容 快照 #!/bin/bashname=`virsh list | a ...
分类:
其他好文 时间:
2020-06-30 12:31:04
阅读次数:
75