摘要: /** * Warning提示信息 * @param string $type 提示类型 默认支持success, error, info * @param string $msg 提示信息 * @param string $url 跳转的URL地址 * @param string $time 信息 阅读全文
posted @ 2020-01-15 15:55 凡斗 阅读(374) 评论(0) 推荐(0) 编辑
摘要: /** * 数组的合并,并加上html标识前缀 * @param array $data * @param int $pid * @param string $html * @param int $level * @return array */ public function treeLevel( 阅读全文
posted @ 2020-01-14 23:47 凡斗 阅读(213) 评论(0) 推荐(0) 编辑
摘要: if ($_POST['category_id']) { $idArray = Array(); $categoryList = $this->getSubCategory($_POST['category_id'],$m_product_category->select(),''); var_du 阅读全文
posted @ 2019-12-19 14:45 凡斗 阅读(412) 评论(0) 推荐(0) 编辑
摘要: //请求接口方法 postcurl($url,$data = null); $url:请求的接口地址。$data:请求接口时所带的参数 function request_post($url, $data) { //初使化init方法 $ch = curl_init(); //指定URL curl_s 阅读全文
posted @ 2019-12-19 10:55 凡斗 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 一:disabled disabled 属性规定应该禁用 input 元素,被禁用的 input 元素,不可编辑,不可复制,不可选择,不能接收焦点,后台也不会接收到传值。设置后文字的颜色会变成灰色。disabled 属性无法与 <input type="hidden"> 一起使用。示例:<input 阅读全文
posted @ 2019-12-17 11:19 凡斗 阅读(263) 评论(0) 推荐(0) 编辑
摘要: UPDATE 表名 SET 字段名 = replace(字段名,‘原来值’,‘修改值’); 例: UPDATE pd_purchase SET type_status =replace(type_status,'1','0'); ; 阅读全文
posted @ 2019-12-03 16:48 凡斗 阅读(9927) 评论(0) 推荐(1) 编辑
摘要: public function test1(){ echo ' <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http:// 阅读全文
posted @ 2019-11-25 16:13 凡斗 阅读(348) 评论(0) 推荐(0) 编辑
摘要: redis提供了5中数据结构,理解每种数据结构的特点对于redis开发运维非常重要。 一、字符串 字符串类型是redis最基础的数据结构,首先键是字符串类型,而且其他几种结构都是在字符串类型基础上构建的, 所以字符串类型能为其他四种数据结构的学习尊定基础。 字符串类型实际上可以是字符串 (简单的字符 阅读全文
posted @ 2019-11-15 19:17 凡斗 阅读(255) 评论(0) 推荐(0) 编辑
摘要: <?php //curl下载远程图片到服务器 方法 function download($url, $path = 'images/'){ $ch = curl_init(); $names = date('Y-m-d',time()); curl_setopt($ch, CURLOPT_URL, 阅读全文
posted @ 2019-11-15 10:35 凡斗 阅读(267) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; default_type 'text/html'; charset utf-8; server_name www.xxx.com; root /usr/local/nginx/html/public; location / { ... 阅读全文
posted @ 2019-09-29 16:40 凡斗 阅读(396) 评论(0) 推荐(0) 编辑