上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 28 下一页
摘要: 扒网站当中一般css中的图片扒不下来,这个脚本就是用来下载这些图片到本地的 流程 1、获取css文件路径 2、打开文件逐行读取判断是否包含需要的图片 2.1 包含则 -进行截取直接获取到相对路径 2.1.1 根据curl来文件流,fopne打开文件,fwrite写入文件 2.2不包含则跳出 阅读全文
posted @ 2018-03-20 00:45 尘梦 阅读(832) 评论(0) 推荐(0) 编辑
摘要: //s用户表 create table userinfo( id int(18) primaryk key auto_increment, username varchar(50) not null ); //角色表 create table roleinfo( id int primary key auto_increment, name varchar(50) not null... 阅读全文
posted @ 2017-12-22 14:36 尘梦 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 普通二维码有下面的微信的logo 所以截取 分了三部: 第一:将文件流转换为image 第二:将image截取 第三:将image转换为文件流 生成100个编码总共用时40s(着实有点多,转换哪里太浪费了) 阅读全文
posted @ 2017-12-06 17:46 尘梦 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Web; using LitJson; public class CodeTest : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain"; ... 阅读全文
posted @ 2017-11-30 15:33 尘梦 阅读(8234) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Web; using System.Net; using System.Text; using System.IO; using System.Collections.Generic; using LitJson; using System.Web.Script.Serialization; public class ce : IHtt... 阅读全文
posted @ 2017-11-30 15:32 尘梦 阅读(3964) 评论(0) 推荐(0) 编辑
摘要: 策略模式:封装算法,选择所用具体实现的置业由客户对象承担。 将算法具体类,然后互相替换,不影响客户。 阅读全文
posted @ 2017-11-20 21:44 尘梦 阅读(196) 评论(0) 推荐(0) 编辑
摘要: GetResult(10,10); //echo $result; $test=Factory::CreateOperatop("+"); $result=$test->GetResult(10,10); echo $result;整体意思就是:怎么new 实例化才 减少修改 阅读全文
posted @ 2017-11-13 23:00 尘梦 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1、根据添加到数据库的菜单转换json 以最笨的方法写的,这个里面的可以进行简写 阅读全文
posted @ 2017-11-04 22:45 尘梦 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 样式是拷贝微信的的。。。。 然后 js 是自己写的 有点乱 后台添加 阅读全文
posted @ 2017-11-04 22:42 尘梦 阅读(294) 评论(0) 推荐(0) 编辑
摘要: public List CategoryPid(int id = 0) { string sql = "select * from category order by cate_sort asc "; //顶级分类 List list = new List(); DataTable sql_id = SqlHe... 阅读全文
posted @ 2017-06-01 17:43 尘梦 阅读(314) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 28 下一页