01. Chrome65 的新功能 CSS Paint API 允许使用编程方式生成图像;Server Timing API允许服务器将时间信息通过HTTP headers传递给浏览器; CSS display: contents可使盒子消失; 详情:https://developers.googl ...
分类:
其他好文 时间:
2019-11-30 09:36:51
阅读次数:
99
? Table of Contents 1. 学习的基础 2. 使用环境 3. 创建项目 3.1. 下载可用于创建项目包 create-react-app 3.2. 创建项目 3.3. 启动项目(根据package中的命令操作) 4. react 知识点 4.1. 只能挂一个标签 4.1.1. 只能 ...
分类:
Web程序 时间:
2019-11-30 00:09:15
阅读次数:
105
? Table of Contents 1. 学习的基础 2. 使用环境 3. 创建项目 3.1. 下载可用于创建项目包 create-react-app 3.2. 创建项目 3.3. 启动项目(根据package中的命令操作) 4. react 知识点 4.1. 只能挂一个标签 4.1.1. 只能 ...
分类:
其他好文 时间:
2019-11-30 00:06:30
阅读次数:
94
Gevent官网文档地址:http://www.gevent.org/contents.html 进程、线程、协程区分 我们通常所说的协程Coroutine其实是corporate routine的缩写,直接翻译为协同的例程,一般我们都简称为协程。 在linux系统中,线程就是轻量级的进程,而我们通 ...
分类:
其他好文 时间:
2019-11-20 23:31:04
阅读次数:
91
请求支付宝二维码图片内容很慢的解决办法 最近开发支付宝小程序项目,通过接口生成的二维码打算下载到服务器,用file_get_contents 获取,结果被限制了很慢7-10秒才获取到 用img 标签访问也是很快,估计是判断了浏览器请求头 后来网上找到解决办法,用curl 模拟浏览器进行访问。秒取 < ...
分类:
微信 时间:
2019-11-16 23:48:31
阅读次数:
218
1 var fs = require("fs"), path = require("path"); function walk(dir, callback) { fs.readdir(dir, function(err, files) { if (err) throw err; files.forE ...
分类:
Web程序 时间:
2019-11-16 20:02:09
阅读次数:
97
<?php //curl下载远程图片到服务器 方法 function download($url, $path = 'images/'){ $ch = curl_init(); $names = mt_rand(100000,999999); curl_setopt($ch, CURLOPT_URL ...
分类:
Web程序 时间:
2019-11-15 10:40:48
阅读次数:
99
内购 Guideline 2.1 - Performance - App Completeness We found that while you have submitted in-app purchase products for your app, the in-app purchase fu ...
分类:
移动开发 时间:
2019-11-13 10:46:59
阅读次数:
365
python对txt的读写 filename ="D://练习//learning_python.txt" #读取整个文件 with open (filename) as file_obj: contents = file_obj.read() print(contents) #逐行读取 with ...
分类:
编程语言 时间:
2019-11-10 17:10:23
阅读次数:
73
有时候,运行nginx和PHP CGI(PHP FPM)web服务的Linux服务器,突然系统负载上升,用top命令查看,很多phpcgi进程的CPU利用率接近100%后来通过跟踪发现,这种情况与PHP的file_get_contents()函数密切相关。 在大中型网站中,基于HTTP协议的API调 ...
分类:
Web程序 时间:
2019-11-06 13:12:17
阅读次数:
113