08 2017 档案

摘要:代码的顺序不能乱,否则会提交错误 $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($... 阅读全文
posted @ 2017-08-30 14:26 layfork 阅读(185) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/txw1958/p/weixin-qrcode-with-parameters.html 阅读全文
posted @ 2017-08-29 20:12 layfork 阅读(134) 评论(0) 推荐(0) 编辑
摘要:https://zhuanlan.zhihu.com/p/25006226 阅读全文
posted @ 2017-08-29 16:34 layfork 阅读(257) 评论(0) 推荐(0) 编辑
摘要:http://www.jianshu.com/p/50c5815bb60b# http://blog.csdn.net/hudeyu777/article/details/76706007 阅读全文
posted @ 2017-08-28 21:13 layfork 阅读(180) 评论(0) 推荐(0) 编辑
摘要:1.在使用requests前加入:requests.packages.urllib3.disable_warnings()2.为requests添加verify=False参数,比如:r = requests.get('https://blog.bbzhh.com',verify=False) 阅读全文
posted @ 2017-08-28 19:30 layfork 阅读(294) 评论(0) 推荐(0) 编辑
摘要:headers = { "Accept":"text/html,application/xhtml+xml,application/xml;", "Accept-Encoding":"gzip", "Accept-Language":"zh-CN,zh;q=0.8", "User-Agent":"Mo... 阅读全文
posted @ 2017-08-28 17:27 layfork 阅读(862) 评论(0) 推荐(0) 编辑
摘要:更多例子 http://phantomjs.org/examples/index.html 阅读全文
posted @ 2017-08-28 14:41 layfork 阅读(177) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/liuchunming033/article/details/39578019 阅读全文
posted @ 2017-08-27 20:03 layfork 阅读(157) 评论(0) 推荐(0) 编辑
摘要:#去除img标签,1-7位空格,&nbsp; removeImg = re.compile('<img.*?>| {1,7}|&nbsp;') #删除超链接标签 removeAddr = re.compile('<a.*?>|</a>') #把换行的标签换为\n replaceLine = re.c 阅读全文
posted @ 2017-08-25 07:50 layfork 阅读(212) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*- #coding=utf-8 import urllib import urllib2 import re import thread import time class QSBK: def __init__(self): self.pageIndex=1 self.user_agent = 'Mozill... 阅读全文
posted @ 2017-08-24 20:44 layfork 阅读(165) 评论(0) 推荐(0) 编辑
摘要:先获得cookie到文件 从文件取出cookie 阅读全文
posted @ 2017-08-24 14:08 layfork 阅读(4815) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*-#coding=utf-8 在开头加这个 阅读全文
posted @ 2017-08-24 11:30 layfork 阅读(163) 评论(0) 推荐(0) 编辑
摘要:import urllib2 try: response = urllib2.urlopen('http://www.baidu.com') except urllib2.URLError, e: print e.reason print response.read() 阅读全文
posted @ 2017-08-24 10:43 layfork 阅读(169) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/github_35160620/article/details/52486986 阅读全文
posted @ 2017-08-24 10:00 layfork 阅读(1455) 评论(0) 推荐(0) 编辑
摘要:postimport urlliimport urllib #post数据value = {}value['username']='aaaa'value['password']='123123'data = urllib.urlencode(value)#添加headerrequest = urllib2.Request("http://localhost/client.php")request... 阅读全文
posted @ 2017-08-23 21:38 layfork 阅读(180) 评论(0) 推荐(0) 编辑
摘要:https://www.zhihu.com/question/47883186 https://www.zhihu.com/question/35461941 http://cuiqingcai.com/927.html http://blog.csdn.net/Bone_ACE/article/d 阅读全文
posted @ 2017-08-23 20:06 layfork 阅读(162) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/qq_28784775/article/details/54134169#comments 阅读全文
posted @ 2017-08-23 15:12 layfork 阅读(162) 评论(0) 推荐(0) 编辑
摘要:1.只有一条的时候用limit 12.加索引3.避免 SELECT *4.使用 ENUM 而不是 VARCHAR 阅读全文
posted @ 2017-08-22 10:28 layfork 阅读(136) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/lzding/article/details/52040501(直接可以用的安装phpredis) http://www.runoob.com/redis/redis-php.html https://blog.csdn.net/lzding/articl 阅读全文
posted @ 2017-08-21 16:00 layfork 阅读(121) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/qq635785620/article/details/11284591 阅读全文
posted @ 2017-08-21 14:00 layfork 阅读(131) 评论(0) 推荐(0) 编辑
摘要:var scrollTop= $(document).scrollTop(); //滚动条高度 var contentHeight = $(document).height();//document的内容高度 var viewH =$(window).height(); //浏览器可见高度 localSt... 阅读全文
posted @ 2017-08-20 10:01 layfork 阅读(116) 评论(0) 推荐(0) 编辑
摘要:http://www.jianshu.com/p/ccd53488a61b dev.server.js 61 行 阅读全文
posted @ 2017-08-18 21:42 layfork 阅读(147) 评论(0) 推荐(0) 编辑
摘要:1. 在工作空间,右键,打开Git Bash 2. clone主分支的代码(即下载主分支代码的过程) 执行命令: git clone xxx.git 3. 进入工程目录 cd xxx 4. 切换到分支并下载代码 git checkout -b 远程仓库分支名字 origin/远程仓库分支名字 git 阅读全文
posted @ 2017-08-18 16:17 layfork 阅读(4444) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/pugongying520/article/details/52712639 配置图 阅读全文
posted @ 2017-08-16 10:05 layfork 阅读(340) 评论(0) 推荐(0) 编辑
摘要:https://segmentfault.com/q/1010000004265556 阅读全文
posted @ 2017-08-14 20:16 layfork 阅读(357) 评论(0) 推荐(0) 编辑
摘要:第一步 安装ajax组件 npm install superagent --save-dev 第二步:写api.js 第三步 编写main.js 第四步:编写模板 阅读全文
posted @ 2017-08-12 15:42 layfork 阅读(1121) 评论(0) 推荐(0) 编辑
摘要:1在src下建立router文件夹,再建立router.js 2.第二步 设置main.js 第三步:写页面 阅读全文
posted @ 2017-08-12 14:35 layfork 阅读(349) 评论(0) 推荐(0) 编辑
摘要:1.先安装npm install vuex --save-dev 2.在src下建立文件夹vuex,在vuex里面写store.js 阅读全文
posted @ 2017-08-12 14:02 layfork 阅读(172) 评论(0) 推荐(0) 编辑
摘要:子组件 父组件 用户名{{user}} 阅读全文
posted @ 2017-08-12 12:00 layfork 阅读(254) 评论(0) 推荐(0) 编辑
摘要:父组件 子组件 {{childseller.name}} 阅读全文
posted @ 2017-08-12 11:14 layfork 阅读(809) 评论(0) 推荐(0) 编辑
摘要:去webpack.base.js配置 resolve: { extensions: ['.js', '.vue', '.json'], alias: { 'vue$': 'vue/dist/vue.esm.js', '@': resolve('src'), 'components':path.res 阅读全文
posted @ 2017-08-12 10:55 layfork 阅读(431) 评论(0) 推荐(0) 编辑
摘要:在webpack 里面用了 stylus-loader,但npm instatll 没有正确安装,出现error: Cannot find module ‘stylus’。 解决办法: 重新npm install stylus 和 stylus-loader npm install stylus – 阅读全文
posted @ 2017-08-12 10:40 layfork 阅读(524) 评论(0) 推荐(0) 编辑
摘要:但是当你新建一个vue项目时,需要重新安装stylus,否则报错: This dependency was not found: * !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../../node_modul 阅读全文
posted @ 2017-08-12 10:37 layfork 阅读(16544) 评论(0) 推荐(0) 编辑
摘要:1.找到端口被占用情况 netstat -aon|findstr "9050" 协议 本地地址 外部地址 状态 PID TCP 127.0.0.1:9050 0.0.0.0:0 LISTENING 2016 2.找到pid对应的进程名字 C:\>tasklist|findstr "2016" 映像名 阅读全文
posted @ 2017-08-12 10:17 layfork 阅读(442) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/pizitai/p/6186513.html 阅读全文
posted @ 2017-08-10 20:42 layfork 阅读(200) 评论(0) 推荐(0) 编辑
摘要:http://www.2cto.com/database/201406/308923.html 阅读全文
posted @ 2017-08-10 11:45 layfork 阅读(368) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/Steping/p/5737547.html 阅读全文
posted @ 2017-08-07 08:17 layfork 阅读(263) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/52fhy/p/5383813.html(移动端有兼容性问题) 要页面加载完直接绑定事件,否则第一次点击是绑定事件,第二次才触发事件 移动端需要设置textarea来兼容 阅读全文
posted @ 2017-08-06 21:04 layfork 阅读(125) 评论(0) 推荐(0) 编辑
摘要:这个方法是百度百科手机页面用的,先为固定定位元素设一个父元素,不设高度,不设宽度,什么都不设,他的第一个子元素是我们需要做固定定位的元素,这个按照需求写好样式,此时,父元素的高度依然是0,如何使得父元素有高度呢,父元素有了高度,后面来的模块就不用设置margin-top的值了,我们只要在固定定位元素 阅读全文
posted @ 2017-08-06 09:44 layfork 阅读(507) 评论(0) 推荐(0) 编辑
摘要://https://sourceforge.net/projects/phpqrcode/files/ 下载地址 include 'phpqrcode/phpqrcode.php'; class MyQrcode{ /* * 普通生成二维码 * @param string $url * @param int $size * @param ... 阅读全文
posted @ 2017-08-04 17:37 layfork 阅读(214) 评论(0) 推荐(0) 编辑
摘要:"fail",'msg'=>"图片参数为空"); } if(!file_exists($backgroundImage)) { return array('result'=>"fail",'msg'=>"背景图片文件不存在"); } if(!file_exists($smallImage)) ... 阅读全文
posted @ 2017-08-04 15:16 layfork 阅读(887) 评论(0) 推荐(0) 编辑
摘要:比如,A表中的一个字段,是B表的主键,那他就可以是A表的外键 外键需要加索引 加了restrict的限制条件后,删B表时候,若a表存在同B表主键一致的记录。无法删除 加A表时候,必须B表存在记录 删B表的时候,必须A表无记录 阅读全文
posted @ 2017-08-03 19:54 layfork 阅读(126) 评论(0) 推荐(0) 编辑
摘要:location ~ \.php { #去掉$ root H:/PHPServer/WWW; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; #增加这一句 fastcg... 阅读全文
posted @ 2017-08-01 10:51 layfork 阅读(289) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示