上一页 1 2 3 4 5 6 ··· 24 下一页
摘要: 只需在nginx的配置文件中的http配置项中加上 add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers X-Requested-With; add_header Access-Contro 阅读全文
posted @ 2022-03-02 09:53 pengcx 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 例如node的项目,可以在location中做一个验证,然后使用 porxy_pass 反向代理模块实现。 location模块的匹配介绍 1.”=”前缀指令匹配,如果匹配成功,则停止其他匹配。 2.普通字符串指令匹配,顺序是从长到短,匹配成功的location如果使用^~,则停止其他匹配(正则匹配 阅读全文
posted @ 2022-02-24 16:19 pengcx 阅读(1062) 评论(0) 推荐(0) 编辑
摘要: 对于同一控件同时设置bindtap和bindlongtap,会发现长按时先出现bindlongtap的事件,然后触发点击事件。 通过测试,我们发现,小程序中事件执行的顺序是 点击:touchstart → touchend → tap 长按 touchstart → longtap → touche 阅读全文
posted @ 2022-01-26 16:36 pengcx 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 来源:https://developers.weixin.qq.com/community/pay/doc/000c663ae888489e75caed93551800 阅读全文
posted @ 2022-01-05 15:02 pengcx 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-12-08 17:37 pengcx 阅读(160) 评论(0) 推荐(0) 编辑
摘要: $arr = ["6","10"]; $newArr = json_decode('[' . join(',', $arr) . ']', true); var_dump($newArr); 阅读全文
posted @ 2021-12-08 16:01 pengcx 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-12-08 15:53 pengcx 阅读(289) 评论(0) 推荐(0) 编辑
摘要: centos7 yum安装php7.2 清除历史版本 安装源 安装扩展包 安装完成以后,启动服务 清除历史版本为了防止centos上面发生php冲突,先清除历史版 yum -y remove php* 安装源安装php72w,是需要配置额外的yum源地址的,否则会报错不能找到相关软件包。php高版本 阅读全文
posted @ 2021-11-18 11:26 pengcx 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 来源:https://www.cnblogs.com/caidingyu/p/11904277.html x509证书一般会用到三类文,key,csr,crt Key 是私用密钥openssl格,通常是rsa算法。 Csr 是证书请求文件,用于申请证书。在制作csr文件的时,必须使用自己的私钥来签署 阅读全文
posted @ 2021-10-21 17:27 pengcx 阅读(265) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name xxxxxxx; rewrite rewrite ^(.*)$ https://$server_name$1 permanent; } //配置多个域名 server { listen 80 default_server; #liste 阅读全文
posted @ 2021-10-04 11:54 pengcx 阅读(66) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 24 下一页