摘要:
var startY = 0,endY = 0,offset = 0; document.addEventListener("touchstart", function (e) { var touch = e.touches[0]; startY = Number(touch.pageY); }) 阅读全文
摘要:
(前提:项目所在服务器能访问该内网IP) 1、设置header('content-type:image/jpeg') ,curl访问内网接口 然后直接echo 显示图片 2、<img src="方法地址?photo_id=photo_id"/> 前端img 显示图片 阅读全文
摘要:
一、传统表单提交传输方式 <form id= "uploadForm" action= "url" method= "post" enctype ="multipart/form-data"> <h1 >测试通过Rest接口上传文件 </h1> <p >上传文件: <input type ="fil 阅读全文
摘要:
微信网页开发,ios 在input,textarea 失去焦点后,页面无法回调。 以下方法可解决: 阅读全文
摘要:
1、优化数据库访问 2、禁止外部的盗链 3、控制大文件的下载 4、使用不同主机分流主要流量 5、使用流量分析统计软件 6、升级服务器配置 阅读全文
摘要:
1、时区设置问题 处理方法:编辑php.ini 搜索 “timezone” 改写为 PRC 时区 2、服务器时间不同步 处理方法:设置服务器时间和本地时间进行同步 阅读全文