码迷,mamicode.com
首页 >  
搜索关键字:async true    ( 27970个结果
在Scrapy中添加Cookie
1.在settings中开启Cookie COOKIES_ENABLED = True 2.重写 start_requests方法 初始化开始url(方便添加cookie) 列: from scrapy import Request class ASpider(CrawlSpider): name ...
分类:其他好文   时间:2021-06-25 16:45:37    阅读次数:0
socketio 新建连接需要设置参数
web端:socket.io.js 小程序端:weapp.socket.io.js const params = { query:‘’,//连接参数 path: '/socket.io', 'force new connection':true //新开一个websocket连接 } const w ...
分类:其他好文   时间:2021-06-25 16:30:53    阅读次数:0
Linux环境下项目连接Mysql8报错问题解决
笔者遇到的项目在Windows下能正常连接Mysql8,但是项目打包部署到Linux环境后,连接数据库报错 解决方法是在连接字符串中添加allowPublicKeyRetrieval=true 原因如下(参考官网给出的连接选项): 如果用户使用了 sha256_password 认证,密码在传输过程 ...
分类:数据库   时间:2021-06-24 18:14:37    阅读次数:0
Echarts dataZoom缩放功能参数详解:
dataZoom=[ //区域缩放 { id: 'dataZoomX', show:true, //是否显示 组件。如果设置为 false,不会显示,但是数据过滤的功能还存在。 backgroundColor:"rgba(47,69,84,0)", //组件的背景颜色 type: 'slider', ...
分类:其他好文   时间:2021-06-24 18:12:17    阅读次数:0
kendo 表格 示例
$('#gridTable').kendoGrid({ dataSource: { pageSize: 10, serverPaging: true, transport: { read: this.bind(function (options) { if (!options.data.pageSi ...
分类:其他好文   时间:2021-06-24 18:05:53    阅读次数:0
Openwrt21 设置mosquitto账号密码
设置用户名和密码 1: 打开mosquitto.conf文件,找到allow_anonymous节点,这个节点作用是,是否开启匿名用户登录,默认是true。打开此项配置(将前面的 # 号去掉)之后将其值改为true 修改前:#allow_anonymous 修改后:allow_anonymous f ...
分类:其他好文   时间:2021-06-24 17:46:33    阅读次数:0
正则表达式
RegExp对象中的方法(检索正则表达的) text() 返回值为true/false exec() 返回一个数组,放匹配到的结果,为找到则输出null compile() ...
分类:其他好文   时间:2021-06-24 17:32:57    阅读次数:0
jenkins pipeline中获取shell命令的输出
//获取标准输出//第一种result = sh returnStdout: true ,script: "<shell command>"result = result.trim()//第二种result = sh(script: "<shell command>", returnStdout: ...
分类:系统相关   时间:2021-06-23 17:14:46    阅读次数:0
vue computed+watch的一种用法
先看代码: <el-checkbox v-model="file" :true-label="1" :false-label="0">选择</el-checkbox>data(){ return{ file: 0 }} 定义了一个多选框的变量,但是调接口时取到的值总有问题,于是用到了下面的写法: c ...
分类:其他好文   时间:2021-06-23 17:07:55    阅读次数:0
python-判断某个数是否为合数 & 获取某个数的所有约数
合数,即有约数的数。 判断某个数是否为合数,需要几个步骤 1.是否>3 2.是否为奇数,因为偶数肯定是合数 3.是否可被比自己小的数整除 实现逻辑: 1.如果<=3则不是合数,返回false 2.如果不是奇数,返回true 3.如果能整除,返回true,都不能整除则返回false 代码如下: 1 d ...
分类:编程语言   时间:2021-06-23 17:06:26    阅读次数:0
27970条   上一页 1 ... 3 4 5 6 7 ... 2797 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!